mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-25 05:30:06 +00:00
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.
This commit is contained in:
parent
406e6aa9e4
commit
74ff02a819
1 changed files with 2 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue