This commit is contained in:
Arun Prakash Jana 2019-01-11 08:06:16 +05:30
parent 6c141d1bb4
commit 1235a7a9a1
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -3045,6 +3045,7 @@ nochange:
case SEL_HELP: // fallthrough case SEL_HELP: // fallthrough
case SEL_LOCK: case SEL_LOCK:
{ {
if (ndents)
mkpath(path, dents[cur].name, newpath, PATH_MAX); mkpath(path, dents[cur].name, newpath, PATH_MAX);
switch (sel) { switch (sel) {
@ -3097,6 +3098,7 @@ nochange:
presel = FILTER; presel = FILTER;
/* Save current */ /* Save current */
if (ndents)
copycurname(); copycurname();
/* Repopulate as directory content may have changed */ /* Repopulate as directory content may have changed */
@ -3251,6 +3253,7 @@ nochange:
spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT); spawn("sh", "-c", g_buf, path, F_NORMAL | F_SIGINT);
if (ndents)
copycurname(); copycurname();
if (cfg.filtermode) if (cfg.filtermode)
presel = FILTER; presel = FILTER;