ソースを参照

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

Avoids a fork.
pull/288/head
m0viefreak 8年前
committed by Daniel Shahaf
コミット
b9112aec79
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      zsh-syntax-highlighting.zsh

+ 1
- 1
zsh-syntax-highlighting.zsh ファイルの表示

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

読み込み中…
キャンセル
保存