zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: remove dead code in cfp_opt_pats
@ 2008-10-14 22:04 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2008-10-14 22:04 UTC (permalink / raw)
  To: zsh-workers

Unless I am very confused, this is a whole lot of no-op.

Index: Src/Zle/computil.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/computil.c,v
retrieving revision 1.109
diff -u -r1.109 computil.c
--- Src/Zle/computil.c	23 Sep 2008 20:57:42 -0000	1.109
+++ Src/Zle/computil.c	14 Oct 2008 22:02:36 -0000
@@ -4351,12 +4351,12 @@
 		    for (s = add; *s && !idigit(*s); s++);
 		    *s = '\0';
 		} else if (*q == '[') {
-		    int not, first = 1;
+		    int not;
 		    char *x = ++q;
 
 		    if ((not = (*x == '!' || *x == '^')))
 			x++;
-		    for (; *x && (first || *x != ']'); x++) {
+		    for (; *x; x++) {
 			if (x[1] == '-' && x[2]) {
 			    char c1 = *x, c2 = x[2];
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-14 22:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-14 22:04 PATCH: remove dead code in cfp_opt_pats Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).