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

index a88c3dd8b07856f0f9dec224fa196b47cd203633..0f7f14e6ab10832bd26fbadbc8cb32a4f8e55ddb 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -517,15 +517,15 @@ static bool select_prev (void)
  * Search up the list of mail folders for one containing new mail.
  *
  * Returns:
- *      1: Success
- *      0: Failure
+ *      true: Success
+ *      false: Failure
  */
-static int select_prev_new (void)
+static bool select_prev_new (void)
 {
   int entry = HilIndex;
 
   if (!EntryCount || HilIndex < 0)
-    return 0;
+    return false;
 
   do
   {
@@ -535,15 +535,15 @@ static int select_prev_new (void)
       if (option (OPTSIDEBARNEXTNEWWRAP))
         entry = EntryCount - 1;
       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;
 }
 
 /**