Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: remove dead code in cfp_opt_pats



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];
 



Messages sorted by: Reverse Date, Date, Thread, Author