]> granicus.if.org Git - neomutt/commitdiff
refactor #ifdef'd conditional
authorRichard Russon <rich@flatcap.org>
Thu, 6 Jun 2019 23:37:11 +0000 (00:37 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 7 Jun 2019 00:24:16 +0000 (01:24 +0100)
keymap.c

index 6a4543caa4f6b8ee9ae8681c88fc1d0ee999f581..bb9aa05f9210f20cdf4da95a54abc71b620d092f 100644 (file)
--- 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();
         }