aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-05-07 10:47:18 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-05-07 10:47:18 +0300
commit94bbbc1ca866fe94ef152bee01c39acd2b3d9edc (patch)
treeedfdd061833a738e7e1678c81c22cc724859c435 /internal
parentdc1f0233440606a9b175b5f2871a098c24af5c74 (diff)
ignore cursor shape escape sequence in the output when instant prompt is active
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 5cc3195e..eaf261db 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6034,7 +6034,7 @@ function _p9k_clear_instant_prompt() {
local cr=$'\r'
local sp="${(%):-%b%k%f%s%u$mark${(pl.$fill.. .)}$cr%b%k%f%s%u%E}"
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
- local unexpected=${(S)content//$'\e'*($'\a'|$'\e\\')}
+ local unexpected=${${${(S)content//$'\e'*($'\a'|$'\e\\')}//$'\e[?'<->'c'}//$'\e['<->' q'}
if [[ -n $unexpected ]]; then
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating Oh My Zsh'
@@ -6086,7 +6086,7 @@ function _p9k_clear_instant_prompt() {
echo -E - ""
fi
fi
- cat $__p9k_instant_prompt_output
+ cat -- $__p9k_instant_prompt_output
echo -nE - $sp
zf_rm -f -- $__p9k_instant_prompt_output
} 2>/dev/null