mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-04-17 11:35:32 +08:00
Perf: use the same login in two places when detecting zsh <= 5.8
This commit is contained in:
parent
c6f62dd69f
commit
73dcdb13a6
@ -1765,7 +1765,7 @@ _zsh_highlight_main__precmd_hook() {
|
|||||||
_zsh_highlight_main__path_cache=()
|
_zsh_highlight_main__path_cache=()
|
||||||
_zsh_highlight_main__arg_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
|
_zsh_highlight_main_calculate_styles
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user