noice

small file browser
git clone git://git.2f30.org/noice.git
Log | Files | Refs | README | LICENSE

commit 3fa6a6272cd304671b195111b283417d2d24f851
parent d907c3f9941a922579d3ad92aedeb1e4e2ab5c2e
Author: sin <sin@2f30.org>
Date:   Sat Dec 20 19:21:03 +0000

Simplify visible()

Diffstat:
noice.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/noice.c b/noice.c @@ -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