Auto-proceed to next entry in selection mode

This commit is contained in:
Arun Prakash Jana 2019-08-07 00:51:54 +05:30
parent 68b460310e
commit 9a3786f94d
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 7 additions and 2 deletions

View File

@ -3977,6 +3977,11 @@ nochange:
appendfpath(newpath, r);
++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 {
r = mkpath(path, dents[cur].name, newpath);
@ -3990,9 +3995,9 @@ nochange:
writecp(newpath, r - 1); /* Truncate NULL from end */
spawn(copier, NULL, NULL, NULL, F_NOTRACE);
}
dents[cur].flags |= FILE_COPIED;
dents[cur].flags |= FILE_COPIED;
}
break;
case SEL_COPYMUL:
cfg.copymode ^= 1;