projects
/
chise
/
xemacs-chise.git.1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
XEmacs 21.2-b2
[chise/xemacs-chise.git.1]
/
src
/
regex.c
diff --git
a/src/regex.c
b/src/regex.c
index
1b68465
..
b8e9b25
100644
(file)
--- a/
src/regex.c
+++ b/
src/regex.c
@@
-4857,8
+4857,16
@@
re_match_2_internal (struct re_pattern_buffer *bufp, CONST char *string1,
highest_active_reg = NO_HIGHEST_ACTIVE_REG;
}
else
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
/* If just failed to match something this time around with a
group that's operated on by a repetition operator, try to