aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-03-20 16:57:27 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-03-20 16:57:27 +0300
commite13283ec7dd02d97363303d97d7d36f7521a1344 (patch)
tree86b964e0da8b612bd72611c6e70a822e9bd89e3c
parentf07d7baea36010bfa74708844d404517ea6ac473 (diff)
bug fix: strip escape sequences in instant prompt output less aggressively
-rw-r--r--internal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 675abaa2..8eabcaaf 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -6535,7 +6535,7 @@ function _p9k_clear_instant_prompt() {
unset _z4h_saved_screen
fi
print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed]
- local unexpected=${${${(S)content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
+ local unexpected=${(S)${${content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')}
if [[ -n $unexpected ]]; then
local omz1='[Oh My Zsh] Would you like to update? [Y/n]: '
local omz2='Updating Oh My Zsh'