소스 검색

Do not pick multiple times in selection mode

master
Arun Prakash Jana 5 년 전
부모
커밋
8ea41dd0e5
No known key found for this signature in database 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)


불러오는 중...
취소
저장