Perf: use the same login in two places when detecting zsh <= 5.8

This commit is contained in:
Roman Perepelitsa 2020-09-01 14:48:25 +02:00
parent c6f62dd69f
commit 73dcdb13a6

View File

@ -1765,7 +1765,7 @@ _zsh_highlight_main__precmd_hook() {
_zsh_highlight_main__path_cache=()
_zsh_highlight_main__arg_cache=()
if [[ $ZSH_VERSION != (5.<9->*|<6->.*) ]]; then
if [[ $ZSH_VERSION == (<0-4>.*|5.<0-8>(|.*)) ]]; then
_zsh_highlight_main_calculate_styles
fi
}