From 701d2c43a5df6dc89d1b149abdb9f24509aa5e74 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Mon, 22 Apr 2024 20:13:19 -0700 Subject: [PATCH] Do not continue after lambda rewrite --- src/modal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modal.c b/src/modal.c index 21f8f6e..32836bd 100644 --- a/src/modal.c +++ b/src/modal.c @@ -183,10 +183,10 @@ rewrite(void) r->a = dict_, s = parse_frag(s + 2); r->b = dict_, parse_frag(s), s = cap; while(*s == ' ') s++; - r = rules; - } else - r = rules + 1; - for(; r < rules_; r++) + return run_rule(r, s); + } + + for(r = rules + 1; r < rules_; r++) if(run_rule(r, s)) return 1; } *dst_++ = last = c;