aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2024-01-05 07:27:33 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2024-01-05 07:27:33 +0300
commitd804048efc46b8b248693fa3a7bfc9f863bb1254 (patch)
tree9133931ec029bbbd478ef25408e7bb5348d8ccce
parentcc6ed4be416b70fe4e3f97d17061c751abaca04f (diff)
fix a bug in DCS detection within instant prompt output (#2518)
-rw-r--r--internal/p10k.zsh2
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'}