Browse Source

Simplify visible()

master
sin 10 years ago
parent
commit
3fa6a6272c
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      noice.c

+ 1
- 3
noice.c View File

@@ -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


Loading…
Cancel
Save