From 9c9814d6f749f913a8d760a22b6c57c52f303baa Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Fri, 12 Apr 2024 09:29:03 -0700 Subject: [PATCH] Do not pick up on varibles when part of words --- src/modal.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modal.c b/src/modal.c index 8c73066..ae56375 100644 --- a/src/modal.c +++ b/src/modal.c @@ -138,10 +138,10 @@ write_rule(Rule *r, char last, char *res) char cc, *b = r->b; if(!*b && last == ' ') outp_--; while((cc = *b++)) - if(cc == '?') + if(spacer(last) && cc == '?') put_reg(*b++); else - *outp_++ = cc; + *outp_++ = cc, last = cc; return commit_rule(r, res, 0); }