From 89eec57d0642d69fab3c1f709ea408d6776ddaad Mon Sep 17 00:00:00 2001 From: "Suraj N. Kurapati" Date: Sun, 26 Jun 2011 11:21:26 -0700 Subject: [PATCH] clean up shell programming style to fit ZSH --- history-substring-search.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/history-substring-search.zsh b/history-substring-search.zsh index d385947..69f2e58 100644 --- a/history-substring-search.zsh +++ b/history-substring-search.zsh @@ -125,7 +125,7 @@ if [[ $+functions[_zsh_highlight] -eq 0 ]]; then # inserts printable characters into $BUFFER # function ordinary-key-press() { - if [[ $KEYS = [[:print:]] ]]; then + if [[ $KEYS == [[:print:]] ]]; then region_highlight=() fi zle .self-insert @@ -357,7 +357,7 @@ _history-substring-search-up-history() { # we have reached the absolute top of history if [[ $HISTNO -eq 1 ]]; then - BUFFER='' + BUFFER= # going up from somewhere below the top of history else