about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Functions/Prompts/prompt_adam2_setup4
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 58f2bb348..08b898789 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2003-07-07  Oliver Kiddle  <opk@zsh.org>
 
+	* spotted by Bart: 18817: Functions/Prompts/prompt_adam2_setup:
+	need to quote % anchor in substitution
+
 	* 18822: Completion/Base/Completer/_expand, Doc/Zsh/compsys.yo:
 	fix accept-exact style not not bail out when it shouldn't and
 	add a setting to continue on and do normal completion
diff --git a/Functions/Prompts/prompt_adam2_setup b/Functions/Prompts/prompt_adam2_setup
index 6678a08d6..e59e13635 100644
--- a/Functions/Prompts/prompt_adam2_setup
+++ b/Functions/Prompts/prompt_adam2_setup
@@ -76,8 +76,8 @@ prompt_adam2_precmd () {
 }
 
 prompt_adam2_choose_prompt () {
-  local prompt_line_1a_width=${#${(S%%)prompt_line_1a//%\{*%\}}}
-  local prompt_line_1b_width=${#${(S%%)prompt_line_1b//%\{*%\}}}
+  local prompt_line_1a_width=${#${(S%%)prompt_line_1a//\%\{*%\}}}
+  local prompt_line_1b_width=${#${(S%%)prompt_line_1b//\%\{*%\}}}
 
   local prompt_padding_size=$(( COLUMNS
                                   - prompt_line_1a_width