diff options
| author | Adam Spiers <adamspiers@users.sourceforge.net> | 2003-08-19 21:59:00 +0000 |
|---|---|---|
| committer | Adam Spiers <adamspiers@users.sourceforge.net> | 2003-08-19 21:59:00 +0000 |
| commit | 0288ef75ff5f273e2899b25678fcc25fe4147c1a (patch) | |
| tree | f4dc7d9344331bcb1a73effc1931e83615853c87 | |
| parent | 18948: Pass global options to p4 (diff) | |
| download | zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar.gz zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar.bz2 zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar.lz zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar.xz zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.tar.zst zsh-0288ef75ff5f273e2899b25678fcc25fe4147c1a.zip | |
unposted: Functions/Prompts/prompt_adam2_setup: fix colouring and bug
introduced since % needed to be quoted inside ${//} substitution.
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | Functions/Prompts/prompt_adam2_setup | 6 |
2 files changed, 9 insertions, 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 diff --git a/Functions/Prompts/prompt_adam2_setup b/Functions/Prompts/prompt_adam2_setup index e59e13635..e36b1475c 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 @@ -107,7 +107,7 @@ prompt_adam2_choose_prompt () { } prompt_adam2_preexec () { - print -n "$fg_no_bold[white]" + print -n "$reset_color" } prompt_adam2_setup "$@" |
