From: Arun Prakash Jana Date: Wed, 25 Apr 2018 16:26:13 +0000 (+0530) Subject: Reload contents on archive create, extract X-Git-Tag: v1.8~12 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=33cec52d4e9fca026c38517cb952bed59743217c;p=nnn.git Reload contents on archive create, extract --- diff --git a/nnn.c b/nnn.c index 35df7b0e..25f7eafd 100644 --- a/nnn.c +++ b/nnn.c @@ -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 */