Skip to content

Commit

Permalink
fix a bug in DCS detection within instant prompt output (#2518)
Browse files Browse the repository at this point in the history
  • Loading branch information
romkatv committed Jan 5, 2024
1 parent cc6ed4b commit d804048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/p10k.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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'}
Expand Down

0 comments on commit d804048

Please sign in to comment.