diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-05-19 08:41:16 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-05-19 08:41:16 +0000 |
commit | 1134e72a7a3976912a8c503577425c8bd4ca34a8 (patch) | |
tree | c8ead7cc6e22eac5bfd57fbb561a350ca456256c /Src | |
parent | a4106e0523036bff9eb1556629bd44a359444d93 (diff) | |
download | zsh-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.c | 5 |
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); } |