mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
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.
This commit is contained in:
parent
cbfeec5625
commit
98c79a69b5
1 changed files with 3 additions and 0 deletions
3
nnn.c
3
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue