instant prompt: fix DCS escape substitution to also work with tmux passthrough

pull/2518/head
John Drouhard
parent cc6ed4be41
commit 800e2b965c

@ -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\\'))}
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'}

Loading…
Cancel
Save