mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-13 08:30:08 +00:00
ignore cursor shape escape sequence in the output when instant prompt is active
This commit is contained in:
parent
dc1f023344
commit
94bbbc1ca8
1 changed files with 2 additions and 2 deletions
|
@ -6034,7 +6034,7 @@ function _p9k_clear_instant_prompt() {
|
||||||
local cr=$'\r'
|
local cr=$'\r'
|
||||||
local sp="${(%):-%b%k%f%s%u$mark${(pl.$fill.. .)}$cr%b%k%f%s%u%E}"
|
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]
|
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
|
if [[ -n $unexpected ]]; then
|
||||||
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
|
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
|
||||||
local omz2='Updating Oh My Zsh'
|
local omz2='Updating Oh My Zsh'
|
||||||
|
@ -6086,7 +6086,7 @@ function _p9k_clear_instant_prompt() {
|
||||||
echo -E - ""
|
echo -E - ""
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
cat $__p9k_instant_prompt_output
|
cat -- $__p9k_instant_prompt_output
|
||||||
echo -nE - $sp
|
echo -nE - $sp
|
||||||
zf_rm -f -- $__p9k_instant_prompt_output
|
zf_rm -f -- $__p9k_instant_prompt_output
|
||||||
} 2>/dev/null
|
} 2>/dev/null
|
||||||
|
|
Loading…
Reference in a new issue