Reload contents on archive create, extract

This commit is contained in:
Arun Prakash Jana 2018-04-25 21:56:13 +05:30
parent c27f58555e
commit 33cec52d4e
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 23 additions and 1 deletions

24
nnn.c
View File

@ -2936,6 +2936,19 @@ nochange:
printmsg(newpath);
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;
case SEL_DFB:
@ -3108,7 +3121,16 @@ nochange:
}
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 */