mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2026-10-07 12:06:24 +00:00
driver: Make the shadowing $WIDGET read only.
This commit is contained in:
1 parent
f665eec230
commit
d0fb0df4ff
1 file changed
+1
-1
@@ -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 "$@"
|
||||
} "$@"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user