Parcourir la source

driver: Widget binding: Use ${(k)widgets} instead of $(zle -la)

Avoids a fork.
pull/288/head
m0viefreak il y a 8 ans
committed by Daniel Shahaf
Parent
révision
b9112aec79
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      zsh-syntax-highlighting.zsh

+ 1
- 1
zsh-syntax-highlighting.zsh Voir le fichier

@ -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.

Chargement…
Annuler
Enregistrer