diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-09-20 13:09:47 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-09-20 13:09:47 +0300 |
commit | 15ff12279cb6e63a9b3a1a830269b4773ef08604 (patch) | |
tree | 723274eb0ff83bdbd17fc63e3e160619e2ea152d /internal/p10k.zsh | |
parent | 8c695f9ad7a7be26127a04c6ae06174e9562f0c4 (diff) |
be more lenient towards awful hacks that zplugin users employ
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index f2add39e..bf016b1e 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3325,7 +3325,12 @@ _p9k_precmd_impl() { (( __p9k_enabled )) || return - if ! zle; then + if ! zle || [[ -z $_p9k_param_sig ]]; then + if zle; then + __p9k_new_status=0 + __p9k_new_pipestatus=(0) + fi + print -rn "${_p9k_prompt_newline:-}" if (( $+_p9k_real_zle_rprompt_indent )); then @@ -4270,7 +4275,7 @@ _p9k_must_init() { [[ -o transient_rprompt ]] && param_sig+=t [[ $param_sig == $_p9k_param_sig ]] && return 1 [[ -n $_p9k_param_sig ]] && _p9k_deinit - _p9k_param_sig=$param_sig + typeset -g _p9k_param_sig=$param_sig } function _p9k_set_os() { |