aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-19 21:25:29 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-19 21:25:29 +0300
commit8e86b0c8d4b13f693968a0f5b639270bc77f72de (patch)
treed1a97992a96849c9ac20c4e191b20706ff47befa /internal/p10k.zsh
parent072fc38ebe71b7fbaa4cde3009889d63f80218ef (diff)
don't hide empty line when invoking zsh immediately after clear
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 0156f906..b27e7c9d 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5581,7 +5581,7 @@ _p9k_set_instant_prompt() {
[[ -n $RPROMPT ]] || unset RPROMPT
}
-typeset -gri __p9k_instant_prompt_version=24
+typeset -gri __p9k_instant_prompt_version=25
_p9k_dump_instant_prompt() {
local user=${(%):-%n}
@@ -5654,7 +5654,7 @@ _p9k_dump_instant_prompt() {
local tail=${content##*$rs$key$us}
[[ ${#tail} != ${#content} ]] || return
local P9K_PROMPT=instant
- if (( ! $+P9K_TTY )); then'
+ if [[ $P9K_TTY != old ]]; then'
if (( _POWERLEVEL9K_NEW_TTY_MAX_AGE_SECONDS < 0 )); then
>&$fd print -r -- ' typeset -gx P9K_TTY=new'
else