mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-31 03:04:49 +01:00
print space/backspace when reacing the last column while printing descriptions and the like to avoid a cursor positioning bug depending on the kind of terminal (autowrap) (14251)
This commit is contained in:
parent
525a133f2f
commit
a3e01003c8
3 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2001-05-08 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 14251: Src/Zle/complist.c, Src/Zle/zle_tricky.c: print
|
||||
space/backspace when reaching the last column while printing
|
||||
descriptions and the like to avoid a cursor positioning bug
|
||||
depending on the kind of terminal (autowrap)
|
||||
|
||||
2001-05-07 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
* 14240: Completion/Unix/Type/_files: double all backslashes
|
||||
|
|
|
@ -576,6 +576,7 @@ clnicezputs(Listcols c, char *s, int ml)
|
|||
return ask;
|
||||
}
|
||||
col = 0;
|
||||
fputs(" \010", shout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -895,8 +896,10 @@ compprintfmt(char *fmt, int n, int dopr, int doesc, int ml, int *stop)
|
|||
continue;
|
||||
}
|
||||
putc(*p, shout);
|
||||
if ((beg = !(cc % columns)) && !stat)
|
||||
if ((beg = !(cc % columns)) && !stat) {
|
||||
ml++;
|
||||
fputs(" \010", shout);
|
||||
}
|
||||
if (mscroll && beg && !--mrestlines && (ask = asklistscroll(ml))) {
|
||||
*stop = 1;
|
||||
if (stat && n)
|
||||
|
|
|
@ -1917,8 +1917,11 @@ printfmt(char *fmt, int n, int dopr, int doesc)
|
|||
l += 1 + (cc / columns);
|
||||
cc = 0;
|
||||
}
|
||||
if (dopr)
|
||||
if (dopr) {
|
||||
putc(*p, shout);
|
||||
if (!(cc % columns))
|
||||
fputs(" \010", shout);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dopr) {
|
||||
|
|
Loading…
Reference in a new issue