mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Reload contents on archive create, extract
This commit is contained in:
parent
c27f58555e
commit
33cec52d4e
24
nnn.c
24
nnn.c
|
@ -2936,6 +2936,19 @@ nochange:
|
||||||
printmsg(newpath);
|
printmsg(newpath);
|
||||||
goto nochange;
|
goto nochange;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* In case of successful archive extract, reload contents */
|
||||||
|
if (sel == SEL_EXTRACT) {
|
||||||
|
/* Continue in navigate-as-you-type mode, if enabled */
|
||||||
|
if (cfg.filtermode)
|
||||||
|
presel = FILTER;
|
||||||
|
|
||||||
|
/* Save current */
|
||||||
|
copycurname();
|
||||||
|
|
||||||
|
/* Repopulate as directory content may have changed */
|
||||||
|
goto begin;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SEL_DFB:
|
case SEL_DFB:
|
||||||
|
@ -3108,7 +3121,16 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
|
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
|
||||||
continue;
|
|
||||||
|
/* Continue in navigate-as-you-type mode, if enabled */
|
||||||
|
if (cfg.filtermode)
|
||||||
|
presel = FILTER;
|
||||||
|
|
||||||
|
/* Save current */
|
||||||
|
copycurname();
|
||||||
|
|
||||||
|
/* Repopulate as directory content may have changed */
|
||||||
|
goto begin;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Open the descriptor to currently open directory */
|
/* Open the descriptor to currently open directory */
|
||||||
|
|
Loading…
Reference in a new issue