From 11d378332e875f5c215f62de82f68deeba912d76 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 18 Mar 2016 15:12:04 +0000 Subject: [PATCH] widget binding: Further unbreak the build. 7e7e291b2047 broke 'zle -C' completions, as reported in #278 just now. --- 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 63e1d2c..3d05dd4 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -234,7 +234,7 @@ _zsh_highlight_bind_widgets() zle -N $cur_widget _zsh_highlight_widget_$cur_widget;; # Completion widget: override and rebind old one with prefix "orig-". - completion:*) zle -C orig-$cur_widget ${${widgets[$cur_widget]#*:}/:/ } + completion:*) zle -C orig-$cur_widget ${${(s.:.)widgets[complete-word]}[2,3]} eval "_zsh_highlight_widget_${(q)cur_widget}() { _zsh_highlight_call_widget orig-${(q)cur_widget} -- \"\$@\" }" zle -N $cur_widget _zsh_highlight_widget_$cur_widget;;