mirror of
https://github.com/zsh-users/zsh-syntax-highlighting.git
synced 2025-12-04 21:56:45 +01:00
driver: Widget binding: Use ${(k)widgets} instead of $(zle -la)
Avoids a fork.
This commit is contained in:
parent
f3d3aaa00c
commit
b9112aec79
1 changed files with 1 additions and 1 deletions
|
|
@ -236,7 +236,7 @@ _zsh_highlight_bind_widgets()
|
|||
|
||||
# Override ZLE widgets to make them invoke _zsh_highlight.
|
||||
local cur_widget
|
||||
for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do
|
||||
for cur_widget in ${${(k)widgets}:#(.*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do
|
||||
case $widgets[$cur_widget] in
|
||||
|
||||
# Already rebound event: do nothing.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue