aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-17 20:22:07 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-01-17 20:22:07 +0530
commit98c79a69b500700f0daffa7ee735f31202983a33 (patch)
tree60e8519427606b7d6ea09b2f39e9c3efa6ef2fd0
parentcbfeec562573b5cd48ae232bec2a9621ec995a38 (diff)
downloadnnn-98c79a69b500700f0daffa7ee735f31202983a33.tar.gz
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.
-rw-r--r--nnn.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/nnn.c b/nnn.c
index fbbab85..2f9cc9f 100644
--- 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;