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:
parent
ee26d44de1
commit
db6cac391b
@ -373,7 +373,7 @@ _zsh_highlight_load_highlighters()
|
|||||||
|
|
||||||
# Load highlighters from highlighters directory and check they define required functions.
|
# Load highlighters from highlighters directory and check they define required functions.
|
||||||
local highlighter highlighter_dir
|
local highlighter highlighter_dir
|
||||||
for highlighter_dir ($1/*/); do
|
for highlighter_dir ($1/*/(/)); do
|
||||||
highlighter="${highlighter_dir:t}"
|
highlighter="${highlighter_dir:t}"
|
||||||
[[ -f "$highlighter_dir${highlighter}-highlighter.zsh" ]] &&
|
[[ -f "$highlighter_dir${highlighter}-highlighter.zsh" ]] &&
|
||||||
. "$highlighter_dir${highlighter}-highlighter.zsh"
|
. "$highlighter_dir${highlighter}-highlighter.zsh"
|
||||||
|
Loading…
Reference in New Issue
Block a user