diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-06-13 14:03:44 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-06-13 14:03:44 +0000 |
commit | a5a5aa4e3e43d3e83a5aa8770f9170ea6ace6e32 (patch) | |
tree | f4d2595c7e9d0336bd7e2ef5a137767327251e5c /Src/Zle/zle_tricky.c | |
parent | 6bb50488ab28461e52784590bf0e7744aa5bc120 (diff) | |
download | zsh-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.c | 4 |
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 { |