commit d40dbfd69ab074ae4ff4815ceacb8d437b6f6b84
parent 8af773eb0d9242272ae0db854305d71dafa09781
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Fri, 16 Jul 2021 01:54:15 +0530
Do not apply filter if directory is empty
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/nnn.c b/src/nnn.c
@@ -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) {