From 88649fce129c9ff3d874c0d2878cd90c2f8f8c50 Mon Sep 17 00:00:00 2001 From: Devine Lu Linvega Date: Wed, 17 Apr 2024 11:18:37 -0700 Subject: [PATCH] Fixes whitespace bug --- src/modal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modal.c b/src/modal.c index 8bd4db2..0db8882 100644 --- a/src/modal.c +++ b/src/modal.c @@ -146,8 +146,10 @@ write_rule(Rule *r, char last, char *res) put_reg(*b++); else *dst_++ = c, last = c; - if(dst_ == origin) + if(dst_ == origin) { + if(*res == ')') dst_--; while(*res == ' ') res++; + } return commit_rule(r, res, 0); }