From 15ff12279cb6e63a9b3a1a830269b4773ef08604 Mon Sep 17 00:00:00 2001 From: romkatv Date: Fri, 20 Sep 2019 12:09:47 +0200 Subject: [PATCH] be more lenient towards awful hacks that zplugin users employ --- internal/p10k.zsh | 9 +++++++-- 1 file 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() {