summaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
Diffstat (limited to 'regex.c')
-rw-r--r--regex.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/regex.c b/regex.c
index aaddec64..9437881e 100644
--- a/regex.c
+++ b/regex.c
@@ -3234,9 +3234,11 @@ static val scan_until_common(val self, val regex, val stream_in,
regex_machine_reset(&regm);
continue;
case REGM_MATCH_DONE:
+ push(ch, &stack);
match = stack;
goto out_match;
case REGM_MATCH:
+ push(ch, &stack);
match = stack;
continue;
case REGM_INCOMPLETE: