diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-05 12:17:34 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-05 12:17:34 +0300 |
commit | d8c509f5c92d850de92417c7fdad4ce7fcb18fb4 (patch) | |
tree | 2270dccd8aebfdfba2d4ae80292cdfeb2725825c /internal | |
parent | d0fadfff9797af0badabe1507ff40b802eafd97d (diff) |
require zsh 5.3 for nordvpn segment; fixes #148
Diffstat (limited to 'internal')
-rwxr-xr-x | internal/p10k.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 0068d1e8..4196e18a 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -4196,7 +4196,8 @@ _p9k_init() { print -rP -- 'Either install %F{green}jq%f or change the value of %BPOWERLEVEL9K_SHORTEN_STRATEGY%b.' fi - if (( !$+__p9k_char2byte )) && _p9k_segment_in_use nordvpn; then + # There is no q+ flag before 5.3. + if (( !$+__p9k_char2byte )) && _p9k_segment_in_use nordvpn && is-at-least 5.3; then typeset -gA __p9k_char2byte=() local -i x=0 y=0 for x in {0..7}; do |