aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-03-06 11:40:04 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-03-06 11:54:53 +0300
commit38d717db264d638cf5a8ade6ea5444ae9b40f57e (patch)
treec2810c4643dc638e6cc5a8cb1ebaf3d6e4313b3d
parentd7d3df875366984a7b37dccd5cb8a754c44b630c (diff)
several fixes for #550
- remove $fg where it has no effect (minor optimization) - add $style after $subsep if the latter has embedded styling (bug fix) - bump version to invalidated cached styles
-rw-r--r--internal/p10k.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 6a679997..f05d8fbb 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -684,7 +684,7 @@ _p9k_left_prompt_segment() {
fi
_p9k_t+=%b$bg$_p9k__ret$ss$style$left_space # 3
else
- _p9k_t+=%b$bg$ss$fg$style$left_space # 3
+ _p9k_t+=%b$bg$ss$style$left_space # 3
fi
_p9k_t+=%b$bg$s$style$left_space # 4
@@ -892,6 +892,8 @@ _p9k_right_prompt_segment() {
local right_space_=$_p9k__ret
[[ $right_space_ == *%* ]] && right_space_+=$style_
+ [[ $subsep == *%* ]] && subsep+=$style
+
local w='<_p9k__w>' s='<_p9k__s>'
local -i non_hermetic=0
@@ -7432,7 +7434,7 @@ _p9k_must_init() {
[[ $sig == $_p9k__param_sig ]] && return 1
_p9k_deinit
fi
- _p9k__param_pat=$'v68\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1'
+ _p9k__param_pat=$'v69\1'${ZSH_VERSION}$'\1'${ZSH_PATCHLEVEL}$'\1'
_p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1'
_p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1'
_p9k__param_pat+=$'$DEFAULT_USER\1${ZLE_RPROMPT_INDENT:-1}\1$P9K_SSH\1$__p9k_ksh_arrays'