aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-04-25 21:56:13 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-04-25 22:46:09 +0530
commit33cec52d4e9fca026c38517cb952bed59743217c (patch)
treea85ea3cc2d36481f6529ffa0a7ac10d36059d2ad
parentc27f58555e3d11527a1d66f69e3be7073367d4eb (diff)
downloadnnn-33cec52d4e9fca026c38517cb952bed59743217c.tar.gz
Reload contents on archive create, extract
-rw-r--r--nnn.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 35df7b0..25f7eaf 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 */