From e13283ec7dd02d97363303d97d7d36f7521a1344 Mon Sep 17 00:00:00 2001 From: Roman Perepelitsa Date: Sun, 20 Mar 2022 14:57:27 +0100 Subject: [PATCH] bug fix: strip escape sequences in instant prompt output less aggressively --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 675abaa2..8eabcaaf 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -6535,7 +6535,7 @@ function _p9k_clear_instant_prompt() { unset _z4h_saved_screen fi print -rn -- $terminfo[rc]${(%):-%b%k%f%s%u}$terminfo[ed] - local unexpected=${${${(S)content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')} + local unexpected=${(S)${${content//$'\e[?'<->'c'}//$'\e['<->' q'}//$'\e'[^$'\a\e']#($'\a'|$'\e\\')} if [[ -n $unexpected ]]; then local omz1='[Oh My Zsh] Would you like to update? [Y/n]: ' local omz2='Updating Oh My Zsh'