From 1fc8484f05abd32b3d4009f2ab1f95e4d95c6b78 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sat, 26 Apr 2008 20:53:04 +0000 Subject: 24881: only feep once on an invalid pattern --- Src/Zle/zle_hist.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Src') diff --git a/Src/Zle/zle_hist.c b/Src/Zle/zle_hist.c index 98f01fbb7..b43e76699 100644 --- a/Src/Zle/zle_hist.c +++ b/Src/Zle/zle_hist.c @@ -1179,8 +1179,10 @@ doisearch(char **args, int dir, int pattern) if (patprog) { revert_patpos = 1; } else { - handlefeep(zlenoargs); - nomatch = 2; + if (nomatch != 2) { + handlefeep(zlenoargs); + nomatch = 2; + } /* indicate "invalid" in status line */ memcpy(ibuf, INVALID_TEXT, BAD_TEXT_LEN); statusline = ibuf; -- cgit 1.4.1