Mercurial > hg > xemacs-beta
diff src/regex.c @ 318:afd57c14dfc8 r21-0b57
Import from CVS: tag r21-0b57
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:45:36 +0200 |
parents | 558f606b08ae |
children | a4f53d9b3154 |
line wrap: on
line diff
--- a/src/regex.c Mon Aug 13 10:44:47 2007 +0200 +++ b/src/regex.c Mon Aug 13 10:45:36 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