From 0943070a9ded6864a8c8ca220e7380e3ada2e2a0 Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Mon, 12 Mar 2012 12:02:26 -0700 Subject: [PATCH] GH-8: do not interfere with self-insert overrides --- zsh-history-substring-search.zsh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/zsh-history-substring-search.zsh b/zsh-history-substring-search.zsh index 104045a..9468a3b 100644 --- a/zsh-history-substring-search.zsh +++ b/zsh-history-substring-search.zsh @@ -96,18 +96,6 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then region_highlight=() } - # - # Remove existing highlights when the user - # inserts printable characters into $BUFFER - # - function ordinary-key-press() { - if [[ $KEYS == [[:print:]] ]]; then - region_highlight=() - fi - zle .self-insert - } - zle -N self-insert ordinary-key-press - # # The following snippet was taken from the zsh-syntax-highlighting project: #