From 9029c64c77685d396b94b911c95af398a7e96d0d Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Sat, 20 Apr 2024 12:00:25 -0700 Subject: [PATCH] A register is surrounded by spacers --- src/modal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modal.c b/src/modal.c index 70f07bc..81ed6ff 100644 --- a/src/modal.c +++ b/src/modal.c @@ -138,7 +138,7 @@ write_rule(Rule *r, char last, char *res) { char c, *b = r->b, *origin = dst_; while((c = *b++)) - if(c == '?' && last != '\\' && regs[(int)*b]) + if(c == '?' && regs[(int)*b] && spacer(last) && spacer(b[1])) put_reg(*b++); else *dst_++ = c, last = c;