about summary refs log tree commit diff
path: root/Src/Zle/zle_hist.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/Zle/zle_hist.c')
-rw-r--r--Src/Zle/zle_hist.c3
1 files changed, 2 insertions, 1 deletions
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;
 		    }