From 74a183447d88a10ba55273a7b5a794f62d72ef2d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 29 Jun 2014 11:52:32 +0200 Subject: [PATCH] zle: don't override yank/yank-pop `yank-pop` relies on the fact that the last zle command is `yank` or `yank-pop` to work correctly. Rewriting them prevents this check to work correctly breaking `yank-pop`. This fix just disallow overriding of those two zle commands. As a side-effect, syntax highlighting will not happen when using. This fixes #99. --- zsh-syntax-highlighting.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh-syntax-highlighting.zsh b/zsh-syntax-highlighting.zsh index cdbe4c4..7d780d2 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -134,7 +134,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)}; do + for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank*)}; do case $widgets[$cur_widget] in # Already rebound event: do nothing.