Skip to content

Commit 56ba7f0

Browse files
danielshahafphy1729
authored andcommitted
driver: Clarify comment. No functional change.
1 parent 2cbb3fb commit 56ba7f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

zsh-syntax-highlighting.zsh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,9 @@ then
342342
_zsh_highlight__zle-line-finish() {
343343
# Reset $WIDGET since the 'main' highlighter depends on it.
344344
#
345-
# A nested function is required to hide zle parameters; see
346-
# "User-defined widgets" in zshall.
345+
# Since $WIDGET is declared by zle as read-only in this function's scope,
346+
# a nested function is required in order to shadow its built-in value;
347+
# see "User-defined widgets" in zshall.
347348
() {
348349
local -h -r WIDGET=zle-line-finish
349350
_zsh_highlight "$@"

0 commit comments

Comments
 (0)