summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-26 20:40:18 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-26 20:40:18 +0000
commit49d05f747679dfbb0df43426aee01d906e0db769 (patch)
treeef4777569a93c9e7bfef959199b4dbb2bc1c7e9f
parent35bbbbacb64c49e9fed1a32d3044dca4b91fa523 (diff)
downloadzsh-49d05f747679dfbb0df43426aee01d906e0db769.tar.gz
zsh-49d05f747679dfbb0df43426aee01d906e0db769.tar.xz
zsh-49d05f747679dfbb0df43426aee01d906e0db769.zip
feeping on a failed match could be mistimed
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_hist.c4
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index b1aa1a361..36320774b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-04-26  Peter Stephenson  <p.w.stephenson@ntlworld.com>
 
+	* 24880: Src/Zle/zle_hist.c: feeping on a failed match could
+	be mistimed.
+
 	* 24879: Src/Zle/zle_hist.c: nastiness with pattern search
 	and duplicate line detection.
 
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index ce3c284ca..98f01fbb7 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -1357,6 +1357,10 @@ doisearch(char **args, int dir, int pattern)
 	    statusline = ibuf + NORM_PROMPT_POS;
 	}
 	nosearch = 0;
+	if (feep) {
+	    handlefeep(zlenoargs);
+	    feep = 0;
+	}
 	sbuf[sbptr] = '_';
 	sbuf[sbptr+1] = '\0';
     ref: