From cb5589db739ca6b835e05537f9a35a0cbc168379 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Fri, 25 Sep 2015 15:35:03 +0000 Subject: [PATCH] Don't wrap set-local-history. See issue #137. A reproduction recipe for testing this change: $ zsh -f % bindkey -e % source % source zsh-syntax-highlighting.zsh % echo foo % echo bar % <^R>echo<^R> This finds the 'echo foo' with this change but not without it. --- 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 287ed49..c207f7a 100644 --- a/zsh-syntax-highlighting.zsh +++ b/zsh-syntax-highlighting.zsh @@ -171,7 +171,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|yank-pop)}; do + for cur_widget in ${${(f)"$(builtin zle -la)"}:#(.*|_*|orig-*|run-help|which-command|beep|yank-pop|set-local-history)}; do case $widgets[$cur_widget] in # Already rebound event: do nothing.