mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Fix #691
This commit is contained in:
parent
2fbb6ae35f
commit
f03ddb587c
|
@ -2116,7 +2116,7 @@ static void archive_selection(const char *cmd, const char *archive, const char *
|
||||||
selpath, curpath, cmd, archive
|
selpath, curpath, cmd, archive
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
spawn(utils[UTIL_SH_EXEC], buf, NULL, F_CLI);
|
spawn(utils[UTIL_SH_EXEC], buf, NULL, F_CLI | F_CONFIRM);
|
||||||
free(buf);
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6351,12 +6351,13 @@ nochange:
|
||||||
}
|
}
|
||||||
get_archive_cmd(newpath, tmp);
|
get_archive_cmd(newpath, tmp);
|
||||||
(r == 's') ? archive_selection(newpath, tmp, path)
|
(r == 's') ? archive_selection(newpath, tmp, path)
|
||||||
: spawn(newpath, tmp, pdents[cur].name, F_NORMAL | F_MULTI);
|
: spawn(newpath, tmp, pdents[cur].name, F_CLI | F_CONFIRM);
|
||||||
|
|
||||||
mkpath(path, tmp, newpath);
|
mkpath(path, tmp, newpath);
|
||||||
if (access(newpath, F_OK) == 0) { /* File created */
|
if (access(newpath, F_OK) == 0) { /* File created */
|
||||||
xstrsncpy(lastname, tmp, NAME_MAX + 1);
|
xstrsncpy(lastname, tmp, NAME_MAX + 1);
|
||||||
clearfilter(); /* Archive name may not match */
|
clearfilter(); /* Archive name may not match */
|
||||||
|
clearselection(); /* Archive operation complete */
|
||||||
goto begin;
|
goto begin;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue