Do not apply filter if directory is empty

This commit is contained in:
Arun Prakash Jana 2021-07-16 01:54:15 +05:30
parent 8af773eb0d
commit d40dbfd69a
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 0 deletions

View File

@ -6868,6 +6868,8 @@ nochange:
printwait(mark, &presel);
goto nochange;
case SEL_FLTR:
if (!ndents)
goto nochange;
/* Unwatch dir if we are still in a filtered view */
#ifdef LINUX_INOTIFY
if (inotify_wd >= 0) {