Skip to content

Commit 776249a

Browse files
committed
'driver': Widget binding: Use ${(k)widgets} instead of $(zle -la)
Avoids a fork.
1 parent 1e3dde4 commit 776249a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zsh-syntax-highlighting.zsh

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ _zsh_highlight_bind_widgets()
244244

245245
# Override ZLE widgets to make them invoke _zsh_highlight.
246246
local -U widgets_to_bind
247-
widgets_to_bind=(${${(f)"$(builtin zle -la)"}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)})
247+
widgets_to_bind=(${${(k)widgets}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)})
248248

249249
# Always wrap special zle-line-finish widget. This is needed to decide if the
250250
# current line ends and special highlighting logic needs to be applied.

0 commit comments

Comments
 (0)