about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-13 14:03:44 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-06-13 14:03:44 +0000
commita5a5aa4e3e43d3e83a5aa8770f9170ea6ace6e32 (patch)
treef4d2595c7e9d0336bd7e2ef5a137767327251e5c /Src/Zle/zle_tricky.c
parent6bb50488ab28461e52784590bf0e7744aa5bc120 (diff)
downloadzsh-a5a5aa4e3e43d3e83a5aa8770f9170ea6ace6e32.tar.gz
zsh-a5a5aa4e3e43d3e83a5aa8770f9170ea6ace6e32.tar.xz
zsh-a5a5aa4e3e43d3e83a5aa8770f9170ea6ace6e32.zip
fixes for display bugs for completion lists (cursor left one line to far up or down) (14903)
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index f2e6524ee..5886b4114 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -1949,7 +1949,7 @@ printfmt(char *fmt, int n, int dopr, int doesc)
 			    putc(' ', shout);
 		    }
 		}
-		l += 1 + (cc / columns);
+		l += 1 + ((cc - 1) / columns);
 		cc = 0;
 	    }
 	    if (dopr) {
@@ -1960,6 +1960,8 @@ printfmt(char *fmt, int n, int dopr, int doesc)
 	}
     }
     if (dopr) {
+        if (!(cc % columns))
+            fputs(" \010", shout);
 	if (tccan(TCCLEAREOL))
 	    tcout(TCCLEAREOL);
 	else {