소스 검색

Selection should work across contexts

master
Arun Prakash Jana 4 년 전
부모
커밋
0a5dc2e336
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. +11
    -3
      src/nnn.c

+ 11
- 3
src/nnn.c 파일 보기

@@ -936,7 +936,8 @@ static bool listselbuf(const char *path, char *newpath)
size_t pos;
uint oldpos = selbufpos;

updateselbuf(path, newpath);
if (cfg.selmode)
updateselbuf(path, newpath);

if (!selbufpos)
return FALSE;
@@ -4141,7 +4142,7 @@ static void browse(char *ipath, const char *session)
char *path, *lastdir, *lastname, *dir, *tmp;
MEVENT event;
struct timespec mousetimings[2] = {{.tv_sec = 0, .tv_nsec = 0}, {.tv_sec = 0, .tv_nsec = 0} };
bool currentmouse = 1;
bool currentmouse = 1, ctx_changed = FALSE;

atexit(dentfree);

@@ -4173,8 +4174,10 @@ static void browse(char *ipath, const char *session)
errexit();

begin:
if (cfg.selmode && nselected && lastdir[0])
if (cfg.selmode && lastdir[0] && !ctx_changed)
updateselbuf(lastdir, newpath);
else if (ctx_changed)
ctx_changed = FALSE;

#ifdef LINUX_INOTIFY
if ((presel == FILTER || dir_changed) && inotify_wd >= 0) {
@@ -4577,6 +4580,11 @@ nochange:
continue;
}

if (cfg.selmode) {
updateselbuf(path, newpath);
ctx_changed = TRUE;
}

savecurctx(&cfg, path, dents[cur].name, r);

/* Reset the pointers */


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