mirror of
https://github.com/jarun/nnn.git
synced 2025-01-24 17:56:41 +00:00
Auto-proceed to next entry in selection mode
This commit is contained in:
parent
68b460310e
commit
9a3786f94d
|
@ -3977,6 +3977,11 @@ nochange:
|
||||||
appendfpath(newpath, r);
|
appendfpath(newpath, r);
|
||||||
|
|
||||||
++ncp;
|
++ncp;
|
||||||
|
dents[cur].flags |= FILE_COPIED;
|
||||||
|
|
||||||
|
/* move cursor to the next entry if this is not the last entry */
|
||||||
|
if (cur != ndents - 1)
|
||||||
|
move_cursor((cur + 1) % ndents, 0);
|
||||||
} else {
|
} else {
|
||||||
r = mkpath(path, dents[cur].name, newpath);
|
r = mkpath(path, dents[cur].name, newpath);
|
||||||
|
|
||||||
|
@ -3990,9 +3995,9 @@ nochange:
|
||||||
|
|
||||||
writecp(newpath, r - 1); /* Truncate NULL from end */
|
writecp(newpath, r - 1); /* Truncate NULL from end */
|
||||||
spawn(copier, NULL, NULL, NULL, F_NOTRACE);
|
spawn(copier, NULL, NULL, NULL, F_NOTRACE);
|
||||||
}
|
|
||||||
|
|
||||||
dents[cur].flags |= FILE_COPIED;
|
dents[cur].flags |= FILE_COPIED;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case SEL_COPYMUL:
|
case SEL_COPYMUL:
|
||||||
cfg.copymode ^= 1;
|
cfg.copymode ^= 1;
|
||||||
|
|
Loading…
Reference in a new issue