mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 20:01:27 +00:00
Reload contents after launch
This commit is contained in:
parent
572094c838
commit
bdea298bb5
12
src/nnn.c
12
src/nnn.c
|
@ -3230,10 +3230,7 @@ nochange:
|
||||||
getprogarg(tmp, &ptr);
|
getprogarg(tmp, &ptr);
|
||||||
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||||
spawn(tmp, ptr, newpath, path, r);
|
spawn(tmp, ptr, newpath, path, r);
|
||||||
continue;
|
} else if (sel == SEL_LAUNCH) {
|
||||||
}
|
|
||||||
|
|
||||||
if (sel == SEL_LAUNCH) {
|
|
||||||
uint args = 0;
|
uint args = 0;
|
||||||
ptr = tmp;
|
ptr = tmp;
|
||||||
|
|
||||||
|
@ -3254,10 +3251,7 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn(tmp, ptr1, ptr2, path, r);
|
spawn(tmp, ptr1, ptr2, path, r);
|
||||||
break;
|
} else if (sel == SEL_ARCHIVE) {
|
||||||
}
|
|
||||||
|
|
||||||
if (sel == SEL_ARCHIVE) {
|
|
||||||
/* newpath is used as temporary buffer */
|
/* newpath is used as temporary buffer */
|
||||||
if (!get_output(newpath, PATH_MAX, "which", utils[APACK], NULL, FALSE)) {
|
if (!get_output(newpath, PATH_MAX, "which", utils[APACK], NULL, FALSE)) {
|
||||||
printmsg("apack missing");
|
printmsg("apack missing");
|
||||||
|
@ -3265,7 +3259,9 @@ nochange:
|
||||||
}
|
}
|
||||||
|
|
||||||
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
|
spawn(utils[APACK], tmp, dents[cur].name, path, F_NORMAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (sel != SEL_NEW) {
|
||||||
/* Continue in navigate-as-you-type mode, if enabled */
|
/* Continue in navigate-as-you-type mode, if enabled */
|
||||||
if (cfg.filtermode)
|
if (cfg.filtermode)
|
||||||
presel = FILTER;
|
presel = FILTER;
|
||||||
|
|
Loading…
Reference in a new issue