about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-05-19 08:41:16 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-05-19 08:41:16 +0000
commit1134e72a7a3976912a8c503577425c8bd4ca34a8 (patch)
treec8ead7cc6e22eac5bfd57fbb561a350ca456256c /Src
parenta4106e0523036bff9eb1556629bd44a359444d93 (diff)
downloadzsh-1134e72a7a3976912a8c503577425c8bd4ca34a8.tar.gz
zsh-1134e72a7a3976912a8c503577425c8bd4ca34a8.tar.xz
zsh-1134e72a7a3976912a8c503577425c8bd4ca34a8.zip
Greg Klanderman: 26972: fix problem ni 26964.
Diffstat (limited to 'Src')
-rw-r--r--Src/utils.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index d30dacca8..e7a4595b8 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1225,7 +1225,10 @@ preprompt(void)
 	str = promptexpand(eolmark, 1, NULL, NULL, NULL);
 	countprompt(str, &w, 0, -1);
 	opts[PROMPTPERCENT] = percents;
-	fprintf(shout, "%s%*s\r", str, (int)columns - w - !hasxn, "");
+	zputs(str, shout);
+	for (w = (int)columns - w - !hasxn; w > 0; w--)
+	    putc(' ', shout);
+	putc('\r', shout);
 	free(str);
     }