浏览代码

Do not pick multiple times in selection mode

master
Arun Prakash Jana 5 年前
父节点
当前提交
8ea41dd0e5
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. +7
    -4
      src/nnn.c

+ 7
- 4
src/nnn.c 查看文件

@@ -3973,11 +3973,14 @@ nochange:
if (!ncp)
writecp(NULL, 0);

r = mkpath(path, dents[cur].name, newpath);
appendfpath(newpath, r);
/* Do not select if already selected */
if (!(dents[cur].flags & FILE_COPIED)) {
r = mkpath(path, dents[cur].name, newpath);
appendfpath(newpath, r);

++ncp;
dents[cur].flags |= FILE_COPIED;
++ncp;
dents[cur].flags |= FILE_COPIED;
}

/* move cursor to the next entry if this is not the last entry */
if (cur != ndents - 1)


正在加载...
取消
保存