diff --git a/src/modal.c b/src/modal.c index e159e28..71e6569 100644 --- a/src/modal.c +++ b/src/modal.c @@ -91,7 +91,7 @@ match_rule(Rule *r, char *p) int i; char c, last = 0, *a = r->a, *b = p; if(rmax) { - for(i = 0; i <= rmax; i++) + for(i = rmin; i <= rmax; i++) regs[i] = 0; rmin = 0xff, rmax = 0x00; }