diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-11 17:04:19 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-11 17:04:19 +0300 |
commit | 1ab91283dc18c151f994491dfaa8cb8af8f35f3b (patch) | |
tree | 12fe548741b941ceb93b1d034343c86e815e496b /internal/p10k.zsh | |
parent | 3d6a899338595aef16f0eb9b5adc81dc88b252cf (diff) |
detect \e*\e\ escape sequences in addition to \e*\a; fixes #315
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 bc8dd1fd..f865962f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -3965,7 +3965,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] - if [[ -n ${(S)content//$'\e'*$'\a'} ]]; then + if [[ -n ${(S)content//$'\e'*($'\a'|$'\e\\')} ]]; then echo -E - "" echo -E - "${(%):-[%3FWARNING%f]: Console output during zsh initialization detected.}" echo -E - "" |