summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Kiddle <opk@users.sourceforge.net>2003-07-07 09:58:56 +0000
committerOliver Kiddle <opk@users.sourceforge.net>2003-07-07 09:58:56 +0000
commit1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1 (patch)
tree76ec03435dc1f907fbed357f97c0c15445ee4e00
parent3ac50886a00231cf99c421f4e36bbc356c91cea2 (diff)
downloadzsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.tar.gz
zsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.tar.xz
zsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.zip
18817: need to quote % anchor in substitution
-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