mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
On entry delete move to previous file
This commit is contained in:
parent
55abe4f76e
commit
31c15dcdca
|
@ -3199,7 +3199,11 @@ nochange:
|
||||||
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
mkpath(path, dents[cur].name, newpath, PATH_MAX);
|
||||||
spawn("rm", rm_opts, newpath, NULL, F_NORMAL | F_SIGINT);
|
spawn("rm", rm_opts, newpath, NULL, F_NORMAL | F_SIGINT);
|
||||||
|
|
||||||
|
if (cur && access(newpath, F_OK) == -1)
|
||||||
|
--cur;
|
||||||
|
|
||||||
copycurname();
|
copycurname();
|
||||||
|
|
||||||
if (cfg.filtermode)
|
if (cfg.filtermode)
|
||||||
presel = FILTER;
|
presel = FILTER;
|
||||||
goto begin;
|
goto begin;
|
||||||
|
|
Loading…
Reference in a new issue