summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-01 19:19:06 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-01 19:19:06 +0000
commitd84c522b4945963c8b8b11ddb8d177b30dd8e318 (patch)
tree1f5c19a5247457d09f9333f6feb7e300990920b4
parent046f4cf49e1a082f78b0acadadae8855db5cb37e (diff)
downloadzsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.tar.gz
zsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.tar.xz
zsh-d84c522b4945963c8b8b11ddb8d177b30dd8e318.zip
Changed the PROMPT_SP output to use prompt-escape %# instead of just #.
-rw-r--r--Src/utils.c4
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);