about summary refs log tree commit diff
path: root/Functions/Prompts
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 /Functions/Prompts
parent3ac50886a00231cf99c421f4e36bbc356c91cea2 (diff)
downloadzsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.tar.gz
zsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.tar.xz
zsh-1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1.zip
18817: need to quote % anchor in substitution
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/prompt_adam2_setup4
1 files changed, 2 insertions, 2 deletions
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