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:
parent
3ac50886a0
commit
1b47d4b482
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue