From b634c036574053c22d77abcd0edeb837b78bcd44 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Fri, 7 Jun 2019 00:37:11 +0100 Subject: [PATCH] refactor #ifdef'd conditional --- keymap.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keymap.c b/keymap.c index 6a4543caa..bb9aa05f9 100644 --- a/keymap.c +++ b/keymap.c @@ -596,12 +596,12 @@ int km_dokey(int menu) /* If a timeout was not received, or the window was resized, exit the * loop now. Otherwise, continue to loop until reaching a total of * $timeout seconds. */ -#ifdef USE_INOTIFY - if ((tmp.ch != -2) || SigWinch || MonitorFilesChanged) -#else if ((tmp.ch != -2) || SigWinch) -#endif goto gotkey; +#ifdef USE_INOTIFY + if (MonitorFilesChanged) + goto gotkey; +#endif i -= C_ImapKeepalive; imap_keepalive(); } -- 2.40.0