diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-21 11:08:59 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-21 11:08:59 +0300 |
commit | 0a1946b9651c037a1266ce88cadf8f30fe8d1cac (patch) | |
tree | 7e3e52e4e3f9e69ff76d5504ce98364837bbfe2e | |
parent | 379b97e4e71cf311ebe1dfa11b2e0432c678a43d (diff) |
bug fix: display the intended battery icon when using legacy configs (#1530)
-rw-r--r-- | internal/p10k.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 85c7f93d..46326f35 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -7191,6 +7191,7 @@ _p9k_init_params() { case $parameters[POWERLEVEL9K_BATTERY_STAGES] in scalar*) typeset -ga _POWERLEVEL9K_BATTERY_STAGES=("${(@s::)${(g::)POWERLEVEL9K_BATTERY_STAGES}}");; array*) typeset -ga _POWERLEVEL9K_BATTERY_STAGES=("${(@g::)POWERLEVEL9K_BATTERY_STAGES}");; + *) typeset -ga _POWERLEVEL9K_BATTERY_STAGES=();; esac local state for state in CHARGED CHARGING LOW DISCONNECTED; do @@ -8129,7 +8130,7 @@ _p9k_must_init() { [[ $sig == $_p9k__param_sig ]] && return 1 _p9k_deinit fi - _p9k__param_pat=$'v124\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1' + _p9k__param_pat=$'v125\1'${(q)ZSH_VERSION}$'\1'${(q)ZSH_PATCHLEVEL}$'\1' _p9k__param_pat+=$'${#parameters[(I)POWERLEVEL9K_*]}\1${(%):-%n%#}\1$GITSTATUS_LOG_LEVEL\1' _p9k__param_pat+=$'$GITSTATUS_ENABLE_LOGGING\1$GITSTATUS_DAEMON\1$GITSTATUS_NUM_THREADS\1' _p9k__param_pat+=$'$GITSTATUS_CACHE_DIR\1$GITSTATUS_AUTO_INSTALL\1${ZLE_RPROMPT_INDENT:-1}\1' |