Parcourir la source

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

pull/764/head
Roman Perepelitsa il y a 4 ans
Parent
révision
73dcdb13a6
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      highlighters/main/main-highlighter.zsh

+ 1
- 1
highlighters/main/main-highlighter.zsh Voir le fichier

@ -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
}

Chargement…
Annuler
Enregistrer