diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-02-25 09:04:33 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-02-25 09:04:33 +0300 |
commit | 7611cfda98ec1fbf434372d78fa33cc8c040da89 (patch) | |
tree | f1e74293a42df8046af30e4dee3c2e1a8910ef69 /powerlevel9k.zsh-theme | |
parent | 968e1a618cf6020f02f08133f3a7d526c1b8e872 (diff) |
bug fix: add current background to the cache key in {right,left}_prompt_segment
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 6361de17..4018c9d1 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -159,7 +159,7 @@ p9k_cache_get() { set_default last_left_element_index 1 set_default POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS " " left_prompt_segment() { - local cache_key="${(q)0} ${(q)1} ${(q)2} ${(q)3} ${(q)4} ${(q)5:+1} ${(q)6}" + local cache_key="${(q)0} ${(q)1} ${(q)2} ${(q)3} ${(q)4} ${(q)5:+1} ${(q)6} ${(q)CURRENT_BG}" local cached if ! cached=$(p9k_cache_get $cache_key); then @@ -278,7 +278,7 @@ CURRENT_RIGHT_BG='NONE' set_default last_right_element_index 1 set_default POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS " " right_prompt_segment() { - local cache_key="${(q)0} ${(q)1} ${(q)2} ${(q)3} ${(q)4} ${(q)5:+1} ${(q)6}" + local cache_key="${(q)0} ${(q)1} ${(q)2} ${(q)3} ${(q)4} ${(q)5:+1} ${(q)6} ${(q)CURRENT_RIGHT_BG}" local cached if ! cached=$(p9k_cache_get $cache_key); then |