main: Add glob qualifier to work around zsh/macOS bug

zsh/macOS bug: http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=42891
This commit is contained in:
Bengt Brodersen 2018-05-30 19:03:36 +02:00
parent ee26d44de1
commit db6cac391b

View File

@ -373,7 +373,7 @@ _zsh_highlight_load_highlighters()
# Load highlighters from highlighters directory and check they define required functions.
local highlighter highlighter_dir
for highlighter_dir ($1/*/); do
for highlighter_dir ($1/*/(/)); do
highlighter="${highlighter_dir:t}"
[[ -f "$highlighter_dir${highlighter}-highlighter.zsh" ]] &&
. "$highlighter_dir${highlighter}-highlighter.zsh"