aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-08 01:42:30 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2018-12-08 01:42:30 +0530
commitbdea298bb59566931a788626454d5d7f25eb467f (patch)
tree7a14f09581692a45f22a524c356eab58e158e525 /src
parent572094c838a3b77831a6897dd6c7c753e01c62da (diff)
downloadnnn-bdea298bb59566931a788626454d5d7f25eb467f.tar.gz
Reload contents after launch
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 76405f3..a11f637 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -3230,10 +3230,7 @@ nochange:
getprogarg(tmp, &ptr);
mkpath(path, dents[cur].name, newpath, PATH_MAX);
spawn(tmp, ptr, newpath, path, r);
- continue;
- }
-
- if (sel == SEL_LAUNCH) {
+ } else if (sel == SEL_LAUNCH) {
uint args = 0;
ptr = tmp;
@@ -3254,10 +3251,7 @@ nochange:
}
spawn(tmp, ptr1, ptr2, path, r);
- break;
- }
-
- if (sel == SEL_ARCHIVE) {
+ } else if (sel == SEL_ARCHIVE) {
/* newpath is used as temporary buffer */
if (!get_output(newpath, PATH_MAX, "which", utils[APACK], NULL, FALSE)) {
printmsg("apack missing");
@@ -3265,7 +3259,9 @@ nochange:
}
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
+ }
+ if (sel != SEL_NEW) {
/* Continue in navigate-as-you-type mode, if enabled */
if (cfg.filtermode)
presel = FILTER;