summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-11-29 13:18:30 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-11-29 13:18:30 +0300
commit1e7cd82e038f6f1b98e24cd752135cd03a7f5e68 (patch)
tree95e85b4531cebf23c530e246d0de98ebd29cfe43 /internal
parent84be5266ecb26a1c0ed1bf9c34d71f18879c94e5 (diff)
don't unset prompt_sp when bailing early
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
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