about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-05-23 15:52:49 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-05-23 15:52:49 +0000
commitbee423bc9f8c0014ddc8c390c8de3c5df7d49761 (patch)
treed4e42cb156578e4140ee3c168f3a6eac88a95b97
parent3acf90f67e8f94ec501af9973f05721e492e433b (diff)
downloadzsh-bee423bc9f8c0014ddc8c390c8de3c5df7d49761.tar.gz
zsh-bee423bc9f8c0014ddc8c390c8de3c5df7d49761.tar.xz
zsh-bee423bc9f8c0014ddc8c390c8de3c5df7d49761.zip
Tweak promptcr handling in "bart" prompt theme
-rw-r--r--ChangeLog6
-rw-r--r--Functions/Prompts/prompt_bart_setup2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e77dc510..0bd31960e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-23  Bart Schaefer  <schaefer@zsh.org>
+
+	* unposted: Functions/Prompts/prompt_bart_setup: print whitespace
+	to stderr for promptcr adjustments, because the prompt itself is
+	printed to stderr.
+
 2005-05-23  Peter Stephenson  <pws@csr.com>
 
 	* 21270: Src/system.h: don't use poll() on Apple.
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index 0826d1872..b1a90e51c 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -81,7 +81,7 @@ prompt_bart_precmd () {
     # Reset the truncation widths for upcoming computations
     ((PSCOL == 1)) || { PSCOL=1 ; prompt_bart_ps1 }
     if [[ -o promptcr ]]
-    then print -nP "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
+    then print -nPu 2 "${(l.COLUMNS.. .)}\e[s${(pl.COLUMNS..\b.)}%E\e[u"
     else IFS='[;' read -s -d R escape\?$'\e[6n' lineno PSCOL
     fi
     ((PSCOL == 1)) || prompt_bart_ps1