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

index ba67c6d03d0bd805d0fbce5c3222082db92945cf..a88c3dd8b07856f0f9dec224fa196b47cd203633 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -490,25 +490,25 @@ static int select_next_new (void)
  * select_prev - Selects the previous unhidden mailbox
  *
  * Returns:
- *      1: Success
- *      0: Failure
+ *      true: Success
+ *      false: Failure
  */
-static int select_prev (void)
+static bool select_prev (void)
 {
   int entry = HilIndex;
 
   if (!EntryCount || HilIndex < 0)
-    return 0;
+    return false;
 
   do
   {
     entry--;
     if (entry < 0)
-      return 0;
+      return false;
   } while (Entries[entry]->is_hidden);
 
   HilIndex = entry;
-  return 1;
+  return true;
 }
 
 /**