1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-24 17:00:32 +02:00

18817: need to quote % anchor in substitution

This commit is contained in:
Oliver Kiddle 2003-07-07 09:58:56 +00:00
parent 3ac50886a0
commit 1b47d4b482
2 changed files with 5 additions and 2 deletions

View file

@ -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