diff options
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Src/utils.c b/Src/utils.c index 2e30c176a..daa753a1f 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -1292,9 +1292,10 @@ preprompt(void) countprompt(str, &w, 0, -1); opts[PROMPTPERCENT] = percents; zputs(str, shout); - for (w = (int)columns - w - !hasxn; w > 0; w--) - putc(' ', shout); - putc('\r', shout); + if (hasxn) + fprintf(shout, "%*s\r%*s\r", (int)columns - w, "", w, ""); + else + fprintf(shout, "%*s\r", (int)columns - w - 1, ""); free(str); } |