diff src/regex.c @ 373:6240c7796c7a r21-2b2

Import from CVS: tag r21-2b2
author cvs
date Mon, 13 Aug 2007 11:04:06 +0200
parents cc15677e0335
children 8626e4521993
line wrap: on
line diff
--- a/src/regex.c	Mon Aug 13 11:03:09 2007 +0200
+++ b/src/regex.c	Mon Aug 13 11:04:06 2007 +0200
@@ -4857,8 +4857,16 @@
                   highest_active_reg = NO_HIGHEST_ACTIVE_REG;
                 }
               else
-                highest_active_reg = r;
-            }
+		{
+		  highest_active_reg = r;
+
+		  /* 98/9/21 jhod:  We've also gotta set lowest_active_reg, don't we? */
+		  r = 1;
+		  while (r < highest_active_reg && !IS_ACTIVE(reg_info[r]))
+		    r++;
+		  lowest_active_reg = r;
+		}
+	    }
 
           /* If just failed to match something this time around with a
              group that's operated on by a repetition operator, try to