From 1134e72a7a3976912a8c503577425c8bd4ca34a8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 19 May 2009 08:41:16 +0000 Subject: Greg Klanderman: 26972: fix problem ni 26964. --- Src/utils.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') 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); } -- cgit 1.4.1