diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2024-01-05 07:27:33 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2024-01-05 07:27:33 +0300 |
commit | d804048efc46b8b248693fa3a7bfc9f863bb1254 (patch) | |
tree | 9133931ec029bbbd478ef25408e7bb5348d8ccce /internal | |
parent | cc6ed4be416b70fe4e3f97d17061c751abaca04f (diff) |
fix a bug in DCS detection within instant prompt output (#2518)
Diffstat (limited to 'internal')
-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 3c784625..a8297bc2 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6629,7 +6629,7 @@ function _p9k_clear_instant_prompt() { fi print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed] local unexpected=${${content//$'\e[?'<->'c'}//$'\e['<->' q'} - unexpected=${(S)unexpected//$'\eP'*[^$'\e']#($'\e\\')} + unexpected=${(S)unexpected//$'\eP'(|*[^$'\e'])($'\e\e')#$'\e\\'} unexpected=${(S)unexpected//$'\e'[^$'\a\e']#($'\a'|$'\e\\')} # Visual Studio Code prints this garbage. unexpected=${${unexpected//$'\033[1;32mShell integration activated\033[0m\n'}//$'\r'} |