mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Start dir watch, preserve cur entry when navigate-as-you-type is disabled
This commit is contained in:
parent
19e5990d3a
commit
af35b8a27c
11
nnn.c
11
nnn.c
|
@ -2733,11 +2733,14 @@ nochange:
|
||||||
cfg.filtermode ^= 1;
|
cfg.filtermode ^= 1;
|
||||||
if (cfg.filtermode)
|
if (cfg.filtermode)
|
||||||
presel = FILTER;
|
presel = FILTER;
|
||||||
else if (!ndents)
|
else {
|
||||||
/* If there are no entries refresh to start watching dir */
|
/* Save current */
|
||||||
|
if (ndents > 0)
|
||||||
|
copycurname();
|
||||||
|
|
||||||
|
/* Start watching the directory */
|
||||||
goto begin;
|
goto begin;
|
||||||
else
|
}
|
||||||
printmsg("navigate-as-you-type off");
|
|
||||||
goto nochange;
|
goto nochange;
|
||||||
case SEL_SEARCH:
|
case SEL_SEARCH:
|
||||||
spawn(player, path, "search", NULL, F_NORMAL);
|
spawn(player, path, "search", NULL, F_NORMAL);
|
||||||
|
|
Loading…
Reference in a new issue