From 3f8a788af21fbd6ec56e727161614ccc65dc0d82 Mon Sep 17 00:00:00 2001 From: fish Date: Sat, 24 Apr 2021 16:04:02 +0800 Subject: [PATCH] fix: restore the 'if condition' flow about cache. --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c0d23afb..0d3b0430 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -600,7 +600,7 @@ _p9k_escape() { # the segment isn't rendered. # * $7: Content. _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 local bg_color=$_p9k__ret _p9k_background $bg_color