mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-19 14:01:57 +00:00
bug fix: add current background to the cache key in {right,left}_prompt_segment
This commit is contained in:
parent
968e1a618c
commit
7611cfda98
1 changed files with 2 additions and 2 deletions
|
@ -159,7 +159,7 @@ p9k_cache_get() {
|
||||||
set_default last_left_element_index 1
|
set_default last_left_element_index 1
|
||||||
set_default POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS " "
|
set_default POWERLEVEL9K_WHITESPACE_BETWEEN_LEFT_SEGMENTS " "
|
||||||
left_prompt_segment() {
|
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
|
local cached
|
||||||
|
|
||||||
if ! cached=$(p9k_cache_get $cache_key); then
|
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 last_right_element_index 1
|
||||||
set_default POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS " "
|
set_default POWERLEVEL9K_WHITESPACE_BETWEEN_RIGHT_SEGMENTS " "
|
||||||
right_prompt_segment() {
|
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
|
local cached
|
||||||
|
|
||||||
if ! cached=$(p9k_cache_get $cache_key); then
|
if ! cached=$(p9k_cache_get $cache_key); then
|
||||||
|
|
Loading…
Reference in a new issue