about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-23 04:13:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-23 04:13:54 +0000
commitf52d81072aa7b14667f191605bca3a6623cf2bb5 (patch)
tree486c0fc44ae2986ebf2e1242553a989cae5ca8f1 /Functions
parent477e1b40042a19a00bd9f15e411a036a51405e2f (diff)
downloadzsh-f52d81072aa7b14667f191605bca3a6623cf2bb5.tar.gz
zsh-f52d81072aa7b14667f191605bca3a6623cf2bb5.tar.xz
zsh-f52d81072aa7b14667f191605bca3a6623cf2bb5.zip
zsh-workers/10181
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Prompts/prompt_bart_setup17
1 files changed, 4 insertions, 13 deletions
diff --git a/Functions/Prompts/prompt_bart_setup b/Functions/Prompts/prompt_bart_setup
index d602cc9ec..6c154134f 100644
--- a/Functions/Prompts/prompt_bart_setup
+++ b/Functions/Prompts/prompt_bart_setup
@@ -60,19 +60,10 @@ prompt_bart_precmd () {
     psvar[8]="$history[$#history]"	# Use history text, not just number
     psvar[9]=''				# Padding before upper right prompt
 
-    if [[ -o promptsubst ]]
-    then
-	# This is a bug workaround; ${(%)...} mishandles promptsubst
-	repeat $[COLUMNS-${#${(%f)${${(e)PS1}//[%]\{[^%]#%\}/}}[1]}-1]
-	do
-	    psvar[9]="$psvar[9] "
-	done
-    else
-	repeat $[COLUMNS-${#${(%f)${PS1//[%]\{[^%]#%\}/}}[1]}-1]
-	do
-	    psvar[9]="$psvar[9] "
-	done
-    fi
+    repeat $[COLUMNS-${#${(%%f)${PS1//[%]\{[^%]#%\}/}}[1]}-1]
+    do
+	psvar[9]="$psvar[9] "
+    done
 }
 
 prompt_bart_ps1 () {