diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2005-10-01 19:19:06 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2005-10-01 19:19:06 +0000 |
commit | d84c522b4945963c8b8b11ddb8d177b30dd8e318 (patch) | |
tree | 1f5c19a5247457d09f9333f6feb7e300990920b4 /Src | |
parent | 046f4cf49e1a082f78b0acadadae8855db5cb37e (diff) | |
download | zsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.tar.gz zsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.tar.xz zsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.zip |
Changed the PROMPT_SP output to use prompt-escape %# instead of just #.
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); |