diff options
-rw-r--r-- | noice.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -219,9 +219,7 @@ setfilter(regex_t *regex, char *filter) int visible(regex_t *regex, char *file) { - if (regexec(regex, file, 0, NULL, 0) == 0) - return 1; - return 0; + return regexec(regex, file, 0, NULL, 0) == 0; } int |