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

View file

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