1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +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

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

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