diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-03-20 16:57:27 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2022-03-20 16:57:27 +0300 |
commit | e13283ec7dd02d97363303d97d7d36f7521a1344 (patch) | |
tree | 86b964e0da8b612bd72611c6e70a822e9bd89e3c | |
parent | f07d7baea36010bfa74708844d404517ea6ac473 (diff) |
bug fix: strip escape sequences in instant prompt output less aggressively
-rw-r--r-- | internal/p10k.zsh | 2 |
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' |