From 1e7cd82e038f6f1b98e24cd752135cd03a7f5e68 Mon Sep 17 00:00:00 2001 From: romkatv <roman.perepelitsa@gmail.com> Date: Fri, 29 Nov 2019 11:18:30 +0100 Subject: don't unset prompt_sp when bailing early --- internal/p10k.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c1c77d1e..f34ff5e3 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3606,7 +3606,7 @@ _p9k_set_instant_prompt() { RPROMPT=$saved_rprompt } -typeset -gri __p9k_instant_prompt_version=11 +typeset -gri __p9k_instant_prompt_version=12 _p9k_dump_instant_prompt() { local user=${(%):-%n} @@ -3635,7 +3635,7 @@ _p9k_dump_instant_prompt() { [[ -t 0 && -t 1 && -t 2 && \$ZSH_VERSION == ${(q)ZSH_VERSION} && \$ZSH_PATCHLEVEL == ${(q)ZSH_PATCHLEVEL} && \$TERM_PROGRAM $hyper 'Hyper' && \$+VTE_VERSION == $+VTE_VERSION && \$POWERLEVEL9K_DISABLE_INSTANT_PROMPT != 'true' && - \$POWERLEVEL9K_INSTANT_PROMPT != 'off' ]] || { __p9k_instant_prompt_sourced=0; return; } + \$POWERLEVEL9K_INSTANT_PROMPT != 'off' ]] || { __p9k_instant_prompt_sourced=0; return 1; } local -i ZLE_RPROMPT_INDENT=${ZLE_RPROMPT_INDENT:-1} local PROMPT_EOL_MARK=${(q)PROMPT_EOL_MARK-%B%S%#%s%b} [[ -n \$SSH_CLIENT || -n \$SSH_TTY || -n \$SSH_CONNECTION ]] && local ssh=1 || local ssh=0 -- cgit v1.2.3