]> granicus.if.org Git - neomutt/commitdiff
select_next_new
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 12:16:26 +0000 (13:16 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 23:29:59 +0000 (00:29 +0100)
sidebar.c

index f246f821377950daf046543601f3500dc26b5d3f..ba67c6d03d0bd805d0fbce5c3222082db92945cf 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -457,15 +457,15 @@ static bool select_next (void)
  * Search down the list of mail folders for one containing new mail.
  *
  * Returns:
- *      1: Success
- *      0: Failure
+ *      true: Success
+ *      false: Failure
  */
 static int select_next_new (void)
 {
   int entry = HilIndex;
 
   if (!EntryCount || HilIndex < 0)
-    return 0;
+    return false;
 
   do
   {
@@ -475,15 +475,15 @@ static int select_next_new (void)
       if (option (OPTSIDEBARNEXTNEWWRAP))
         entry = 0;
       else
-        return 0;
+        return false;
     }
     if (entry == HilIndex)
-      return 0;
+      return false;
   } while (!Entries[entry]->buffy->new &&
            !Entries[entry]->buffy->msg_unread);
 
   HilIndex = entry;
-  return 1;
+  return true;
 }
 
 /**