From 500c402380849d40d6e0eabd6cc063add47a57af Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 Apr 2008 10:13:30 +0000 Subject: 24855: tests for combining char alignment should only be on metafied line --- Src/Zle/zle_utils.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Src') diff --git a/Src/Zle/zle_utils.c b/Src/Zle/zle_utils.c index 0f14d57a4..8b298f59d 100644 --- a/Src/Zle/zle_utils.c +++ b/Src/Zle/zle_utils.c @@ -591,6 +591,7 @@ backkill(int ct, int flags) { int i; + UNMETACHECK(); if (flags & CUT_RAW) { i = (zlecs -= ct); } else { @@ -611,6 +612,7 @@ forekill(int ct, int flags) { int i = zlecs; + UNMETACHECK(); if (!(flags & CUT_RAW)) { int n = ct; while (n--) @@ -633,6 +635,7 @@ backdel(int ct, int flags) shiftchars(zlemetacs -= ct, ct); } else { shiftchars(zlecs -= ct, ct); + CCRIGHT(); } } else { int n = ct, origcs = zlecs; @@ -640,8 +643,8 @@ backdel(int ct, int flags) while (n--) DECCS(); shiftchars(zlecs, origcs - zlecs); + CCRIGHT(); } - CCRIGHT(); } /**/ @@ -653,6 +656,7 @@ foredel(int ct, int flags) shiftchars(zlemetacs, ct); } else if (flags & CUT_RAW) { shiftchars(zlecs, ct); + CCRIGHT(); } } else { int origcs = zlecs; @@ -663,8 +667,8 @@ foredel(int ct, int flags) ct = zlecs - origcs; zlecs = origcs; shiftchars(zlecs, ct); + CCRIGHT(); } - CCRIGHT(); } /**/ @@ -672,7 +676,8 @@ void setline(char *s, int flags) { char *scp; - + + UNMETACHECK(); if (flags & ZSL_COPY) scp = ztrdup(s); else -- cgit 1.4.1