aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-05-20 17:58:20 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2022-05-20 17:58:51 +0300
commit74ff02a819c5b83b8022c973ce100e41104a41cf (patch)
treea04d8ffc4519215e47cf233be77c3dc93004c6af /internal
parent406e6aa9e46429872c211d0c37517238ce9da3db (diff)
work around a bug in zsh 5.4.1 (#1872)
Here's the bug: zsh -fc 'print "${#${x}}"' This code should print "0" but it prints "1" in zsh 5.4.1.
Diffstat (limited to 'internal')
-rw-r--r--internal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 22b4f49a..6d3299f1 100644
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -5999,7 +5999,7 @@ _p9k_set_instant_prompt() {
[[ -n $RPROMPT ]] || unset RPROMPT
}
-typeset -gri __p9k_instant_prompt_version=45
+typeset -gri __p9k_instant_prompt_version=46
_p9k_dump_instant_prompt() {
local user=${(%):-%n}
@@ -6033,7 +6033,7 @@ _p9k_dump_instant_prompt() {
typeset -gi __p9k_instant_prompt_disabled=1
[[ \$ZSH_VERSION == ${(q)ZSH_VERSION} && \$ZSH_PATCHLEVEL == ${(q)ZSH_PATCHLEVEL} &&
$screen \${(M)TERM:#(screen*|tmux*)} &&
- \${#\${(M)VTE_VERSION:#(<1-4602>|4801)}} == ${#${(M)VTE_VERSION:#(<1-4602>|4801)}} &&
+ \${#\${(M)VTE_VERSION:#(<1-4602>|4801)}} == "${#${(M)VTE_VERSION:#(<1-4602>|4801)}}" &&
\$POWERLEVEL9K_DISABLE_INSTANT_PROMPT != 'true' &&
\$POWERLEVEL9K_INSTANT_PROMPT != 'off' ]] || return
typeset -g __p9k_instant_prompt_param_sig=${(q+)_p9k__param_sig}