Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: pattern incremental search
- X-seq: zsh-workers 24881
 
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
 
- To: zsh-workers@xxxxxxxxxx (Zsh hackers list)
 
- Subject: Re: PATCH: pattern incremental search
 
- Date: Sat, 26 Apr 2008 21:51:00 +0100
 
- In-reply-to: Message from Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>   of "Sat, 26 Apr 2008 21:35:22 BST." <200804262035.m3QKZMIh029435@xxxxxxxxxxxxxxxxxxx>
 
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
 
Feeping awful, part 2...  I'll just commit any more I find on this
scale without posting.
There might be argument for even less feeping on invalid patterns.  You
do get a prompt, after all, and many complicated patterns go through
this stage.
Index: Src/Zle/zle_hist.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_hist.c,v
retrieving revision 1.46
diff -u -r1.46 zle_hist.c
--- Src/Zle/zle_hist.c	26 Apr 2008 20:40:18 -0000	1.46
+++ Src/Zle/zle_hist.c	26 Apr 2008 20:49:30 -0000
@@ -1179,8 +1179,10 @@
 		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;
-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author