]> Sergey Matveev's repositories - nnn.git/commitdiff
Comment and cleanup
authorlostd <lostd@2f30.org>
Tue, 27 Jan 2015 07:58:32 +0000 (09:58 +0200)
committerlostd <lostd@2f30.org>
Tue, 27 Jan 2015 07:58:32 +0000 (09:58 +0200)
noice.c

diff --git a/noice.c b/noice.c
index 8fe7f98d62725bc4734cf02e0783537f65d379c5..784ccb959e5067b99b0046fb3fb63a7d273e129c 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -666,6 +666,7 @@ nochange:
                        tmp = readln();
                        if (tmp == NULL)
                                tmp = xstrdup(ifilter);
+                       /* Check and report regex errors */
                        r = setfilter(&re, tmp);
                        if (r != 0) {
                                free(tmp);
@@ -673,7 +674,6 @@ nochange:
                        }
                        free(filter);
                        filter = tmp;
-                       filter_re = re;
                        DPRINTF_S(filter);
                        /* Save current */
                        if (n > 0)