summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_refresh.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index 0915254c5..38e6a38e8 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -191,9 +191,15 @@ resetvideo(void)
     }
     for (ln = 0; ln != winh + 1; ln++) {
 	if (nbuf[ln])
-	    *nbuf[ln] = ZWC('\n');
+	{
+	    nbuf[ln][0] = ZWC('\n');
+	    nbuf[ln][1] = ZWC('\0');
+	}
 	if (obuf[ln])
-	    *obuf[ln] = ZWC('\n');
+	{
+	    obuf[ln][0] = ZWC('\n');
+	    obuf[ln][0] = ZWC('\0');
+	}
     }
 
     /* TODO currently zsh core is not using widechars */