aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/noice.c b/noice.c
index 63002cf..80be09f 100644
--- a/noice.c
+++ b/noice.c
@@ -748,15 +748,16 @@ moretyping:
if (r == 1)
nowtyping = 0;
/* Check regex errors */
- if (tmp != NULL)
+ if (tmp != NULL) {
r = setfilter(&re, tmp);
- if (r != 0)
- if (nowtyping) {
- goto moretyping;
- } else {
- free(tmp);
- goto nochange;
- }
+ if (r != 0)
+ if (nowtyping) {
+ goto moretyping;
+ } else {
+ free(tmp);
+ goto nochange;
+ }
+ }
/* Copy or reset filter */
free(filter);
if (tmp != NULL)