From f48f5400c1faa875fed810f70fb57dfa506b977b Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 19 Oct 2015 13:38:12 +0000 Subject: [PATCH] Revert "Do wrap the 'yank' widget, because that works." MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 8e7c26f489f952213bbb269a0570384184c0f6fe. Currently, after a 'yank', paste highlighting (via $YANK_ACTIVE in zsh 5.1.1) is applied but other highlighting (e.g., string highlighting when the yanked text is «"foo» as a new word) is not. See issue #183 for context. Conflicts: zsh-syntax-highlighting.zsh --- 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 810bb54..1441695 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -182,7 +182,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)}; do + for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|set-local-history|yank)}; do case $widgets[$cur_widget] in # Already rebound event: do nothing.