We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cbb3fb commit 56ba7f0Copy full SHA for 56ba7f0
zsh-syntax-highlighting.zsh
@@ -342,8 +342,9 @@ then
342
_zsh_highlight__zle-line-finish() {
343
# Reset $WIDGET since the 'main' highlighter depends on it.
344
#
345
- # A nested function is required to hide zle parameters; see
346
- # "User-defined widgets" in zshall.
+ # Since $WIDGET is declared by zle as read-only in this function's scope,
+ # a nested function is required in order to shadow its built-in value;
347
+ # see "User-defined widgets" in zshall.
348
() {
349
local -h -r WIDGET=zle-line-finish
350
_zsh_highlight "$@"
0 commit comments