浏览代码

Do not watch dir if entering in filter mode

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

+ 3
- 2
src/nnn.c 查看文件

@@ -2830,10 +2830,11 @@ begin:
populate(path, lastname); populate(path, lastname);


#ifdef LINUX_INOTIFY #ifdef LINUX_INOTIFY
if (inotify_wd == -1)
if (presel != FILTER && inotify_wd == -1) {
inotify_wd = inotify_add_watch(inotify_fd, path, INOTIFY_MASK); inotify_wd = inotify_add_watch(inotify_fd, path, INOTIFY_MASK);
}
#elif defined(BSD_KQUEUE) #elif defined(BSD_KQUEUE)
if (event_fd == -1) {
if (presel != FILTER && event_fd == -1) {
#if defined(O_EVTONLY) #if defined(O_EVTONLY)
event_fd = open(path, O_EVTONLY); event_fd = open(path, O_EVTONLY);
#else #else


正在加载...
取消
保存