Bläddra i källkod

widget binding: Further unbreak the build.

7e7e291b20 broke 'zle -C' completions, as reported in #278 just now.
pull/283/head
Daniel Shahaf 8 år sedan
förälder
incheckning
11d378332e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      zsh-syntax-highlighting.zsh

+ 1
- 1
zsh-syntax-highlighting.zsh Visa fil

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

Laddar…
Avbryt
Spara