From 98c79a69b500700f0daffa7ee735f31202983a33 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Wed, 17 Jan 2018 20:22:07 +0530 Subject: [PATCH] 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. --- nnn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nnn.c b/nnn.c index fbbab850..2f9cc9f5 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;