]> Sergey Matveev's repositories - nnn.git/commitdiff
Do not watch dir if entering in filter mode
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 1 Feb 2019 03:21:22 +0000 (08:51 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 1 Feb 2019 03:21:22 +0000 (08:51 +0530)
src/nnn.c

index 2fe18cf1d5511fe8bdebaf585a5fdcb216043f74..9a8ea37847949610826415d4b40b8c41c2d351e0 100644 (file)
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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