driver: Clarify comment. No functional change.

This commit is contained in:
Daniel Shahaf 2018-01-09 19:23:45 +00:00 committed by Matthew Martin
parent 2cbb3fb24e
commit 56ba7f082d

View File

@ -342,8 +342,9 @@ then
_zsh_highlight__zle-line-finish() { _zsh_highlight__zle-line-finish() {
# Reset $WIDGET since the 'main' highlighter depends on it. # Reset $WIDGET since the 'main' highlighter depends on it.
# #
# A nested function is required to hide zle parameters; see # Since $WIDGET is declared by zle as read-only in this function's scope,
# "User-defined widgets" in zshall. # a nested function is required in order to shadow its built-in value;
# see "User-defined widgets" in zshall.
() { () {
local -h -r WIDGET=zle-line-finish local -h -r WIDGET=zle-line-finish
_zsh_highlight "$@" _zsh_highlight "$@"