mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
unposted: Functions/Prompts/prompt_adam2_setup: fix colouring and bug
introduced since % needed to be quoted inside ${//} substitution.
This commit is contained in:
parent
247d829b73
commit
0288ef75ff
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-08-19 Adam Spiers <adam@spiers.net>
|
||||
|
||||
* unposted: Functions/Prompts/prompt_adam2_setup: fix colouring
|
||||
and bug introduced since % needed to be quoted inside ${//}
|
||||
substitution.
|
||||
|
||||
2003-08-19 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 18948: Completion/Unix/Command/_perforce: Pass global
|
||||
|
|
|
@ -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
|
||||
|
@ -107,7 +107,7 @@ prompt_adam2_choose_prompt () {
|
|||
}
|
||||
|
||||
prompt_adam2_preexec () {
|
||||
print -n "$fg_no_bold[white]"
|
||||
print -n "$reset_color"
|
||||
}
|
||||
|
||||
prompt_adam2_setup "$@"
|
||||
|
|
Loading…
Reference in a new issue