We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6586e2 commit aed99f6Copy full SHA for aed99f6
zsh-syntax-highlighting.zsh
@@ -49,6 +49,11 @@ if true; then
49
fi
50
51
52
+integer zsh_highlight_use_redrawhook
53
+if zle -la .match-bracket; then
54
+ (( zsh_highlight_use_redrawhook=1 ))
55
+fi
56
+
57
# -------------------------------------------------------------------------------------------------
58
# Core highlighting update system
59
@@ -357,6 +362,11 @@ _zsh_highlight_bind_widgets()
357
362
done
358
363
}
359
364
365
+if (( $zsh_highlight_use_redrawhook )); then
366
+ _zsh_highlight_bind_widgets(){}
367
+ zle -N zle-line-pre-redraw _zsh_highlight
368
369
360
370
# Load highlighters from directory.
361
371
#
372
# Arguments:
0 commit comments