fix: restore the 'if condition' flow about cache.

This commit is contained in:
fish 2021-04-24 16:04:02 +08:00
parent c36d197713
commit 3f8a788af2
1 changed files with 1 additions and 1 deletions

View File

@ -600,7 +600,7 @@ _p9k_escape() {
# the segment isn't rendered. # the segment isn't rendered.
# * $7: Content. # * $7: Content.
_p9k_left_prompt_segment() { _p9k_left_prompt_segment() {
if _p9k_cache_get "$0" "$1" "$2" "$3" "$4" "$_p9k__segment_index"; then if ! _p9k_cache_get "$0" "$1" "$2" "$3" "$4" "$_p9k__segment_index"; then
_p9k_color $1 BACKGROUND $2 _p9k_color $1 BACKGROUND $2
local bg_color=$_p9k__ret local bg_color=$_p9k__ret
_p9k_background $bg_color _p9k_background $bg_color