commit 98c79a69b500700f0daffa7ee735f31202983a33
parent cbfeec562573b5cd48ae232bec2a9621ec995a38
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Wed, 17 Jan 2018 20:22:07 +0530
Redraw if no entries when navigate-as-you-type is turned off
The main reason to do this is to start watching the current dir for changes. In
any case, this does not harm; if there are dir entries shown on redraw that's
better than showing nothing.
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/nnn.c b/nnn.c
@@ -2715,6 +2715,9 @@ nochange:
cfg.filtermode ^= 1;
if (cfg.filtermode)
presel = FILTER;
+ else if (!ndents)
+ /* If there are no entries refresh to start watching dir */
+ goto begin;
else
printmsg("navigate-as-you-type off");
goto nochange;