]> granicus.if.org Git - neomutt/commitdiff
build: fix nntp/notmuch conditionals
authorRichard Russon <rich@flatcap.org>
Fri, 18 Nov 2016 02:29:19 +0000 (02:29 +0000)
committerRichard Russon <rich@flatcap.org>
Thu, 24 Nov 2016 20:50:31 +0000 (20:50 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 8d488f7db464404f8fb67eb421770ac4e03e9fb0..4c97602664429c9d7d89f84251584f8b4d1c584c 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -565,11 +565,14 @@ static void buffy_check (BUFFY *tmp, struct stat *contex_sb, int check_stats)
     /* check to see if the folder is the currently selected folder
      * before polling */
     if (!Context || !Context->path ||
+       ((tmp->magic == MUTT_IMAP ||
 #ifdef USE_NNTP
-       (( tmp->magic == MUTT_IMAP || tmp->magic == MUTT_POP || tmp->magic == MUTT_NNTP )
-#else
-       (( tmp->magic == MUTT_IMAP || tmp->magic == MUTT_POP || tmp->magic == MUTT_NOTMUCH)
+         tmp->magic == MUTT_NNTP ||
+#endif
+#ifdef USE_NOTMUCH
+         tmp->magic == MUTT_NOTMUCH ||
 #endif
+         tmp->magic == MUTT_POP)
            ? mutt_strcmp (tmp->path, Context->path) :
              (sb.st_dev != contex_sb->st_dev || sb.st_ino != contex_sb->st_ino)))
     {