From: Arun Prakash Jana Date: Wed, 17 Jan 2018 14:52:07 +0000 (+0530) Subject: Redraw if no entries when navigate-as-you-type is turned off X-Git-Tag: v1.7~26 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=98c79a69b500700f0daffa7ee735f31202983a33;p=nnn.git 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. --- 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;