aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-16 20:10:03 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-11-16 20:10:03 +0530
commit4c863d9b7b0f63b15006e952e1ca5c81397c9a8e (patch)
tree098db2224d2a38abd5b357f2ab1728088b23ff7f
parentc7b037d6a1ec0ba65e9bfac8877c9e5ac480b8e0 (diff)
downloadnnn-4c863d9b7b0f63b15006e952e1ca5c81397c9a8e.tar.gz
Do not check for events when selecting files
-rw-r--r--src/nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 3388f09..5c991e6 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -1806,7 +1806,7 @@ static int nextsel(int presel)
* Check for changes every odd second.
*/
#ifdef LINUX_INOTIFY
- if (!cfg.blkorder && inotify_wd >= 0 && (idle & 1)) {
+ if (!cfg.selmode && !cfg.blkorder && inotify_wd >= 0 && (idle & 1)) {
i = read(inotify_fd, inotify_buf, EVENT_BUF_LEN);
if (i > 0) {
char *ptr;
@@ -1830,7 +1830,7 @@ static int nextsel(int presel)
}
}
#elif defined(BSD_KQUEUE)
- if (!cfg.blkorder && event_fd >= 0 && idle & 1
+ if (!cfg.selmode && !cfg.blkorder && event_fd >= 0 && idle & 1
&& kevent(kq, events_to_monitor, NUM_EVENT_SLOTS,
event_data, NUM_EVENT_FDS, &gtimeout) > 0)
c = CONTROL('L');