From d0fb0df4ff96209d6623896f07be7db2655cf1b4 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 8 Jan 2018 06:03:38 +0000 Subject: [PATCH] driver: Make the shadowing $WIDGET read only. --- 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 04152c4..6fb1c12 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -349,7 +349,7 @@ then # A nested function is required to hide zle parameters; see # "User-defined widgets" in zshall. () { - local -h +r WIDGET=zle-line-finish + local -h -r WIDGET=zle-line-finish _zsh_highlight "$@" } "$@" }