diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-12 09:30:03 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-06-12 09:30:03 +0300 |
commit | e2196ce32e28d1860441eaa5a9490e768adcd969 (patch) | |
tree | 8ea91acd0baf34668c5120a05193f1e6c1302398 /internal/p10k.zsh | |
parent | 05eaf8162c0a83c38bb210e888358d5bdc3aef90 (diff) |
match terminal escape sequences in instant prompt output more aggressively
Diffstat (limited to 'internal/p10k.zsh')
-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 aebd6a49..7b5b4acd 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6091,7 +6091,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]0;'[^$'\a\e']#($'\a'|$'\e\\')}//$'\e[?'<->'c'}//$'\e['<->' q'} + 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' |