Skip to content

Commit

Permalink
'driver': Widget binding: Use ${(k)widgets} instead of $(zle -la)
Browse files Browse the repository at this point in the history
Avoids a fork.
  • Loading branch information
m0vie committed Jun 20, 2016
1 parent 1e3dde4 commit 776249a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-syntax-highlighting.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ _zsh_highlight_bind_widgets()

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

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

0 comments on commit 776249a

Please sign in to comment.