From 3e64e0e9fa944b9e95de46e8a459ecf209663fa7 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Mon, 23 May 2016 21:42:08 +0100 Subject: [PATCH] Fix repeat search with HIST_FIND_NO_DUPS. --- zsh-history-substring-search.zsh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zsh-history-substring-search.zsh b/zsh-history-substring-search.zsh index dbfddbe..80cdab0 100644 --- a/zsh-history-substring-search.zsh +++ b/zsh-history-substring-search.zsh @@ -190,6 +190,11 @@ _history-substring-search-begin() { return; fi + # + # Clear the previous result. + # + _history_substring_search_result='' + if [[ -z $BUFFER ]]; then # # If the buffer is empty, we will just act like up-history/down-history