1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-11 13:00:41 +03:00

Small code style tweak

This commit is contained in:
Maxime Coste 2023-12-26 18:49:16 +11:00
parent ba7059a2dc
commit 3c81a4a253

View File

@ -84,17 +84,17 @@ bool EventManager::handle_next_events(EventMode mode, sigset_t* sigmask, bool bl
continue; continue;
const int fd = watcher->fd(); const int fd = watcher->fd();
if (fd != -1) if (fd == -1)
{ continue;
max_fd = std::max(fd, max_fd);
auto events = watcher->events(); max_fd = std::max(fd, max_fd);
if (events & FdEvents::Read) auto events = watcher->events();
FD_SET(fd, &rfds); if (events & FdEvents::Read)
if (events & FdEvents::Write) FD_SET(fd, &rfds);
FD_SET(fd, &wfds); if (events & FdEvents::Write)
if (events & FdEvents::Except) FD_SET(fd, &wfds);
FD_SET(fd, &efds); if (events & FdEvents::Except)
} FD_SET(fd, &efds);
} }
bool with_timeout = false; bool with_timeout = false;