about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2010-11-26 18:50:22 +0000
committerWayne Davison <wayned@users.sourceforge.net>2010-11-26 18:50:22 +0000
commit3f42b0a61724c2d7f27d31aaf89e7930836b61ce (patch)
tree12db1b36bb4d67f7e5fbae2b1c390f363102a0a4
parentbfcf98a7d31f0842757353ff9ec6813f92f50f80 (diff)
downloadzsh-3f42b0a61724c2d7f27d31aaf89e7930836b61ce.tar.gz
zsh-3f42b0a61724c2d7f27d31aaf89e7930836b61ce.tar.xz
zsh-3f42b0a61724c2d7f27d31aaf89e7930836b61ce.zip
Use newer PROMPT_SP behavior for hasxn terms too.
-rw-r--r--Src/utils.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Src/utils.c b/Src/utils.c
index daa753a1f..9678df01d 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1292,10 +1292,7 @@ preprompt(void)
 	countprompt(str, &w, 0, -1);
 	opts[PROMPTPERCENT] = percents;
 	zputs(str, shout);
-	if (hasxn)
-	    fprintf(shout, "%*s\r%*s\r", (int)columns - w, "", w, "");
-	else
-	    fprintf(shout, "%*s\r", (int)columns - w - 1, "");
+	fprintf(shout, "%*s\r%*s\r", (int)columns - w - !hasxn, "", w, "");
 	free(str);
     }