driver: Do not pass widget arguments to _zsh_highlight

This avoids a bug in zsh 4.3.12 and prior which affects passing
arguments to an anonymous function.
This commit is contained in:
Matthew Martin 2018-10-13 21:55:45 -05:00
parent 56ba7f082d
commit 8d4c6355e6

View File

@ -347,8 +347,8 @@ then
# see "User-defined widgets" in zshall. # see "User-defined widgets" in zshall.
() { () {
local -h -r WIDGET=zle-line-finish local -h -r WIDGET=zle-line-finish
_zsh_highlight "$@" _zsh_highlight
} "$@" }
} }
_zsh_highlight_bind_widgets(){} _zsh_highlight_bind_widgets(){}
if [[ -o zle ]]; then if [[ -o zle ]]; then