1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-22 12:20:07 +00:00
This commit is contained in:
romkatv 2020-05-19 07:59:57 +02:00
parent 5e932c225e
commit 5d1bfe8ed7

View file

@ -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