mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix #188
This commit is contained in:
parent
6c141d1bb4
commit
1235a7a9a1
|
@ -3045,7 +3045,8 @@ nochange:
|
||||||
case SEL_HELP: // fallthrough
|
case SEL_HELP: // fallthrough
|
||||||
case SEL_LOCK:
|
case SEL_LOCK:
|
||||||
{
|
{
|
||||||
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
if (ndents)
|
||||||
|
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||||
|
|
||||||
switch (sel) {
|
switch (sel) {
|
||||||
case SEL_MEDIA:
|
case SEL_MEDIA:
|
||||||
|
@ -3097,7 +3098,8 @@ nochange:
|
||||||
presel = FILTER;
|
presel = FILTER;
|
||||||
|
|
||||||
/* Save current */
|
/* Save current */
|
||||||
copycurname();
|
if (ndents)
|
||||||
|
copycurname();
|
||||||
|
|
||||||
/* Repopulate as directory content may have changed */
|
/* Repopulate as directory content may have changed */
|
||||||
goto begin;
|
goto begin;
|
||||||
|
@ -3251,7 +3253,8 @@ nochange:
|
||||||
|
|
||||||
spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT);
|
spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT);
|
||||||
|
|
||||||
copycurname();
|
if (ndents)
|
||||||
|
copycurname();
|
||||||
if (cfg.filtermode)
|
if (cfg.filtermode)
|
||||||
presel = FILTER;
|
presel = FILTER;
|
||||||
goto begin;
|
goto begin;
|
||||||
|
|
Loading…
Reference in a new issue