diff --git a/src/modal.c b/src/modal.c index 98afefa..58f19f2 100644 --- a/src/modal.c +++ b/src/modal.c @@ -136,7 +136,7 @@ add_rule(char *p) { char c; Rule *r = rules_++; - p += 2; + r->id = rules_ - rules - 1, p += 2; while((c = *p) && c <= ' ') p++; r->a = parse_rule(p), p = walk(p); while((c = *p) && c <= ' ') p++;