From a3e01003c86ba324fc10871b14092db37a41df03 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Tue, 8 May 2001 08:14:33 +0000 Subject: 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) --- Src/Zle/complist.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src/Zle/complist.c') diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index ffefb7fec..4975a39ae 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -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) -- cgit 1.4.1