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 98aab20 commit a747058Copy full SHA for a747058
zsh-syntax-highlighting.zsh
@@ -276,8 +276,19 @@ _zsh_highlight_bind_widgets()
276
}
277
278
if (( $zsh_highlight_use_redrawhook )); then
279
+ _zsh_highlight__zle-line-finish() {
280
+ # Reset $WIDGET since the 'main' highlighter depends on it.
281
+ #
282
+ # A nested function is required to hide zle parameters; see
283
+ # "User-defined widgets" in zshall.
284
+ () {
285
+ local -h +r WIDGET=zle-line-finish
286
+ _zsh_highlight "$@"
287
+ }
288
289
_zsh_highlight_bind_widgets(){}
290
add-zle-hook-widget zle-line-pre-redraw _zsh_highlight
291
+ add-zle-hook-widget zle-line-finish _zsh_highlight__zle-line-finish
292
fi
293
294
# Load highlighters from directory.
0 commit comments