bug fix: don't leave temp state dumps if gitstatus is disabled

pull/260/head
romkatv 5 years ago
parent adfdf198b7
commit 6d16760253

@ -3371,7 +3371,7 @@ function _p9k_dump_state() {
typeset -g __p9k_cached_param_sig=$_p9k_param_sig typeset -g __p9k_cached_param_sig=$_p9k_param_sig
typeset -p __p9k_cached_param_sig >&$fd || return typeset -p __p9k_cached_param_sig >&$fd || return
unset __p9k_cached_param_sig unset __p9k_cached_param_sig
(( $+functions[_p9k_preinit] )) && functions _p9k_preinit >&$fd || return (( $+functions[_p9k_preinit] )) && { functions _p9k_preinit >&$fd || return }
print -r -- '_p9k_restore_state_impl() {' >&$fd || return print -r -- '_p9k_restore_state_impl() {' >&$fd || return
typeset -pm "($include)~($exclude)" >&$fd || return typeset -pm "($include)~($exclude)" >&$fd || return
print -r -- '}' >&$fd || return print -r -- '}' >&$fd || return

Loading…
Cancel
Save