From 8bdb79136542bd04a25b19f5197b96697745c168 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 12 Apr 2024 09:56:07 -0700 Subject: [PATCH] Housekeeping --- src/modal.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modal.c b/src/modal.c index 5004d94..1099210 100644 --- a/src/modal.c +++ b/src/modal.c @@ -134,12 +134,12 @@ commit_rule(Rule *r, char *s, int create) static int write_rule(Rule *r, char last, char *res) { - char cc, *b = r->b, *origin = outp_; - while((cc = *b++)) - if(spacer(last) && cc == '?') + char c, *b = r->b, *origin = outp_; + while((c = *b++)) + if(spacer(last) && c == '?') put_reg(*b++); else - *outp_++ = cc, last = cc; + *outp_++ = c, last = c; if(last == ' ' && outp_ - origin == 0) outp_--; return commit_rule(r, res, 0); }