From 5d1bfe8ed73e87b4604ea1ec8e4d4d18a1977405 Mon Sep 17 00:00:00 2001 From: romkatv Date: Tue, 19 May 2020 07:59:57 +0200 Subject: [PATCH] cleanup --- internal/p10k.zsh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 75a35456..106432a4 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6021,10 +6021,9 @@ function _p9k_restore_state() { [[ $__p9k_cached_param_pat == $_p9k__param_pat && $__p9k_cached_param_sig == $_p9k__param_sig ]] || return (( $+functions[_p9k_restore_state_impl] )) || return _p9k_restore_state_impl - _p9k__state_restored=1 + return 0 } always { - unset __p9k_cached_param_sig - if (( !_p9k__state_restored )); then + if (( $? )); then if (( $+functions[_p9k_preinit] )); then unfunction _p9k_preinit (( $+functions[gitstatus_stop_p9k_] )) && gitstatus_stop_p9k_ POWERLEVEL9K @@ -6032,6 +6031,7 @@ function _p9k_restore_state() { _p9k_delete_instant_prompt zf_rm -f -- $__p9k_dump_file{,.zwc} 2>/dev/null fi + unset __p9k_cached_param_sig } } @@ -6618,7 +6618,6 @@ _p9k_init_vars() { typeset -gi _p9k__state_dump_scheduled typeset -gi _p9k__state_dump_fd typeset -gi _p9k__prompt_idx - typeset -gi _p9k__state_restored typeset -gi _p9k_reset_on_line_finish typeset -gF _p9k__timer_start typeset -gi _p9k__status