1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-10-01 16:31:53 +02:00

Changed the PROMPT_SP output to use prompt-escape %# instead of just #.

This commit is contained in:
Wayne Davison 2005-10-01 19:19:06 +00:00
parent 046f4cf49e
commit d84c522b49

@ -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);