1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-02-01 15:32:12 +01:00

fixes for display bugs for completion lists (cursor left one line to far up or down) (14903)

This commit is contained in:
Sven Wischnowsky 2001-06-13 14:03:44 +00:00
parent 6bb50488ab
commit a5a5aa4e3e
3 changed files with 16 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2001-06-13 Sven Wischnowsky <wischnow@zsh.org>
* 14903: Src/Zle/complist.c, Src/Zle/zle_tricky.c: fixes for
display bugs for completion lists (cursor left one line to far
up or down)
2001-06-13 Peter Stephenson <pws@csr.com>
* 14893: Src/signals.c: make handler mod_export because it's

View file

@ -887,7 +887,7 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop)
if (*p == '\n') {
if (dopr == 1 && mlbeg >= 0 && tccan(TCCLEAREOL))
tcout(TCCLEAREOL);
l += 1 + (cc / columns);
l += 1 + ((cc - 1) / columns);
cc = 0;
}
if (dopr == 1) {
@ -909,9 +909,12 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop)
}
}
}
if (dopr && mlbeg >= 0 && tccan(TCCLEAREOL))
tcout(TCCLEAREOL);
if (dopr) {
if (!(cc % columns))
fputs(" \010", shout);
if (mlbeg >= 0 && tccan(TCCLEAREOL))
tcout(TCCLEAREOL);
}
if (stat && n)
mfirstl = -1;

View file

@ -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 {