diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-01 08:51:22 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-02-01 08:51:22 +0530 |
commit | ba088196f621f6df4abd4aec64ed7fd5a4cbbbf9 (patch) | |
tree | 2a5043a484d99bd2428acd1f838c5d4c8b6ed351 /src/nnn.c | |
parent | b3f7575ef0719173d8324201c0b11d6e23bb2b83 (diff) | |
download | nnn-ba088196f621f6df4abd4aec64ed7fd5a4cbbbf9.tar.gz |
Do not watch dir if entering in filter mode
Diffstat (limited to 'src/nnn.c')
-rw-r--r-- | src/nnn.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -2830,10 +2830,11 @@ begin: populate(path, lastname); #ifdef LINUX_INOTIFY - if (inotify_wd == -1) + if (presel != FILTER && inotify_wd == -1) { inotify_wd = inotify_add_watch(inotify_fd, path, INOTIFY_MASK); + } #elif defined(BSD_KQUEUE) - if (event_fd == -1) { + if (presel != FILTER && event_fd == -1) { #if defined(O_EVTONLY) event_fd = open(path, O_EVTONLY); #else |