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 New Issue
Block a user