mirror of
https://github.com/zsh-users/zsh-syntax-highlighting
synced 2024-09-20 16:39:05 +02:00
driver: Make the shadowing $WIDGET read only.
This commit is contained in:
parent
f665eec230
commit
d0fb0df4ff
|
@ -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 "$@"
|
||||
} "$@"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue