about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-28 11:35:54 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-28 11:35:54 +0000
commit7462e3f97882ab00933a1a1704b67622e853c89e (patch)
tree8669a1c436c0ee0493bab43bc4fbdca5689142c2
parentbe947a560657f46438bb5f0c40cc0ac8cda6e2ec (diff)
downloadzsh-7462e3f97882ab00933a1a1704b67622e853c89e.tar.gz
zsh-7462e3f97882ab00933a1a1704b67622e853c89e.tar.xz
zsh-7462e3f97882ab00933a1a1704b67622e853c89e.zip
unposted: more tweaks for failed isearch pattern matches
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_hist.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 9eb3f4523..2e8ca9046 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2008-04-28  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Src/Zle/zle_hist.c: more tweaks for failures with
+	isearch pattern matching.
+
 	* 24890: Matt Wozniski: Src/Zle/zle_hist.c: skip_pos was
 	staying set causing random failures on backtracking in isearch.
 
diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c
index bc3cdf634..be52210cc 100644
--- a/Src/Zle/zle_hist.c
+++ b/Src/Zle/zle_hist.c
@@ -1197,6 +1197,7 @@ doisearch(char **args, int dir, int pattern)
 		}
 		if (patprog) {
 		    revert_patpos = 1;
+		    skip_pos = 0;
 		} else {
 		    if (nomatch != 2) {
 			handlefeep(zlenoargs);
@@ -1342,7 +1343,7 @@ doisearch(char **args, int dir, int pattern)
 		    get_isrch_spot(top_spot, &hl, &pos, &pat_hl, &pat_pos,
 				   &end_pos, &zlemetacs, &sbptr, &dir,
 				   &nomatch);
-		    if (!nomatch) {
+		    if (nomatch != 1) {
 			feep = 1;
 			nomatch = 1;
 		    }