mirror of https://github.com/jarun/nnn.git
Do not check for events when selecting files
This commit is contained in:
parent
c7b037d6a1
commit
4c863d9b7b
|
@ -1806,7 +1806,7 @@ static int nextsel(int presel)
|
||||||
* Check for changes every odd second.
|
* Check for changes every odd second.
|
||||||
*/
|
*/
|
||||||
#ifdef LINUX_INOTIFY
|
#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);
|
i = read(inotify_fd, inotify_buf, EVENT_BUF_LEN);
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
char *ptr;
|
char *ptr;
|
||||||
|
@ -1830,7 +1830,7 @@ static int nextsel(int presel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#elif defined(BSD_KQUEUE)
|
#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,
|
&& kevent(kq, events_to_monitor, NUM_EVENT_SLOTS,
|
||||||
event_data, NUM_EVENT_FDS, >imeout) > 0)
|
event_data, NUM_EVENT_FDS, >imeout) > 0)
|
||||||
c = CONTROL('L');
|
c = CONTROL('L');
|
||||||
|
|
Loading…
Reference in New Issue