From db6cac391bee957c20ff3175b2f03c4817253e60 Mon Sep 17 00:00:00 2001 From: Bengt Brodersen Date: Wed, 30 May 2018 19:03:36 +0200 Subject: [PATCH] main: Add glob qualifier to work around zsh/macOS bug zsh/macOS bug: http://www.zsh.org/cgi-bin/mla/redirect?WORKERNUMBER=42891 --- zsh-syntax-highlighting.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 9ffde76..6838e1d 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -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"