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-05-08 08:14:33 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-05-08 08:14:33 +0000
commita3e01003c86ba324fc10871b14092db37a41df03 (patch)
treebe527d3cd21198e6252ba7939aee1768055e4fba /Src/Zle/zle_tricky.c
parent525a133f2f37a7f4d881bd86fc79522223cfd5a2 (diff)
downloadzsh-a3e01003c86ba324fc10871b14092db37a41df03.tar.gz
zsh-a3e01003c86ba324fc10871b14092db37a41df03.tar.xz
zsh-a3e01003c86ba324fc10871b14092db37a41df03.zip
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)
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 31556041c..e30bf45e5 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -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) {