diff options
Diffstat (limited to 'Src')
-rw-r--r-- | Src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c index 0a9999d04..663be3b5b 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -831,9 +831,9 @@ preprompt(void) * if there was any dangling output on the line (assuming the terminal * has automatic margins, but we try even if hasam isn't set). */ char *str; - int percents = isset(PROMPTPERCENT); + int percents = opts[PROMPTPERCENT]; opts[PROMPTPERCENT] = 1; - str = promptexpand("%B%S#%s%b", 0, NULL, NULL); + str = promptexpand("%B%S%#%s%b", 0, NULL, NULL); opts[PROMPTPERCENT] = percents; fprintf(shout, "%s%*s\r", str, (int)columns - 1 - !hasxn, ""); free(str); |