From 8d4c6355e6d252f1d67beca4df946f8335fac51c Mon Sep 17 00:00:00 2001 From: Matthew Martin Date: Sat, 13 Oct 2018 21:55:45 -0500 Subject: [PATCH] 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. --- zsh-syntax-highlighting.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index 9dc6c1f..aa650d3 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -347,8 +347,8 @@ then # see "User-defined widgets" in zshall. () { local -h -r WIDGET=zle-line-finish - _zsh_highlight "$@" - } "$@" + _zsh_highlight + } } _zsh_highlight_bind_widgets(){} if [[ -o zle ]]; then