From 1b47d4b48210e29ac6376a36a8d09ab83d9b3eb1 Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Mon, 7 Jul 2003 09:58:56 +0000 Subject: 18817: need to quote % anchor in substitution --- Functions/Prompts/prompt_adam2_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions') 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 -- cgit 1.4.1