mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Simplify visible()
This commit is contained in:
parent
d907c3f994
commit
3fa6a6272c
1 changed files with 1 additions and 3 deletions
4
noice.c
4
noice.c
|
@ -219,9 +219,7 @@ setfilter(regex_t *regex, char *filter)
|
||||||
int
|
int
|
||||||
visible(regex_t *regex, char *file)
|
visible(regex_t *regex, char *file)
|
||||||
{
|
{
|
||||||
if (regexec(regex, file, 0, NULL, 0) == 0)
|
return regexec(regex, file, 0, NULL, 0) == 0;
|
||||||
return 1;
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Reference in a new issue