mirror of
https://github.com/jarun/nnn.git
synced 2025-01-23 01:06:37 +00:00
Do not pick multiple times in selection mode
This commit is contained in:
parent
9a3786f94d
commit
8ea41dd0e5
11
src/nnn.c
11
src/nnn.c
|
@ -3973,11 +3973,14 @@ nochange:
|
||||||
if (!ncp)
|
if (!ncp)
|
||||||
writecp(NULL, 0);
|
writecp(NULL, 0);
|
||||||
|
|
||||||
r = mkpath(path, dents[cur].name, newpath);
|
/* Do not select if already selected */
|
||||||
appendfpath(newpath, r);
|
if (!(dents[cur].flags & FILE_COPIED)) {
|
||||||
|
r = mkpath(path, dents[cur].name, newpath);
|
||||||
|
appendfpath(newpath, r);
|
||||||
|
|
||||||
++ncp;
|
++ncp;
|
||||||
dents[cur].flags |= FILE_COPIED;
|
dents[cur].flags |= FILE_COPIED;
|
||||||
|
}
|
||||||
|
|
||||||
/* move cursor to the next entry if this is not the last entry */
|
/* move cursor to the next entry if this is not the last entry */
|
||||||
if (cur != ndents - 1)
|
if (cur != ndents - 1)
|
||||||
|
|
Loading…
Reference in a new issue