From d84c522b4945963c8b8b11ddb8d177b30dd8e318 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sat, 1 Oct 2005 19:19:06 +0000 Subject: Changed the PROMPT_SP output to use prompt-escape %# instead of just #. --- Src/utils.c | 4 ++-- 1 file 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); -- cgit 1.4.1