about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Src/Zle/zle_tricky.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index dc12ecc89..cf8ce63e1 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -7612,7 +7612,7 @@ cut_cline(Cline l)
      * the line. Anything before that is kept. */
 
     for (p = l; p; p = p->next)
-	if (p->orig || p->olen)
+	if (p->orig || p->olen || !(p->flags & CLF_NEW))
 	    e = p->next;
 
     /* Then keep all structs without missing characters. */