]> granicus.if.org Git - neomutt/commitdiff
minor style changes to match sidebar
authorRichard Russon <rich@flatcap.org>
Sat, 9 Apr 2016 21:33:47 +0000 (22:33 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 15 Apr 2016 22:09:21 +0000 (23:09 +0100)
curs_main.c
sidebar.c
sidebar.h

index 8e1172dfc8d31502c8972c09e515c73faf7ed904..136e5e9cd2723c39e305c29a87fe9d07d1d7e266 100644 (file)
@@ -2658,7 +2658,7 @@ int mutt_index_menu (void)
        break;
 
       case OP_SIDEBAR_TOGGLE:
-       toggle_sidebar(menu->menu);
+       sb_toggle_virtual();
        break;
 #endif
       default:
index 714795a1fd0bf86c13e7e3537410109030486df6..ac97b23489636c35c21edbf24630a177fdbd4f05 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -816,8 +816,9 @@ draw_sidebar (int first_row, int num_rows, int div_width)
                        }
                }
 #ifdef USE_NOTMUCH
-               else if (b->magic == M_NOTMUCH)
+               else if (b->magic == M_NOTMUCH) {
                        sidebar_folder_name = b->desc;
+               }
 #endif
                char str[SHORT_STRING];
                make_sidebar_entry (str, sizeof (str), w, sidebar_folder_name, b);
@@ -1120,14 +1121,17 @@ sb_notify_mailbox (BUFFY *b, int created)
        }
 }
 
-/* switch between regualar and virtual folders */
-void toggle_sidebar(int menu)
+/**
+ * sb_toggle_virtual - Switch between regular and virtual folders
+ */
+void
+sb_toggle_virtual (void)
 {
        if (sidebar_source == -1)
                get_incoming();
 
 #ifdef USE_NOTMUCH
-       if (sidebar_source == SB_SRC_INCOMING && VirtIncoming)
+       if ((sidebar_source == SB_SRC_INCOMING) && VirtIncoming)
                sidebar_source = SB_SRC_VIRT;
        else
 #endif
index b61f90322bc88386144b0cf9c6984f190584a5fb..b63b8cded434f25e0a9169ac8d7ebc0a6cec370e 100644 (file)
--- a/sidebar.h
+++ b/sidebar.h
@@ -32,6 +32,6 @@ void         sb_set_buffystats (const CONTEXT *ctx);
 BUFFY *      sb_set_open_buffy (const char *path);
 void         sb_set_update_time (void);
 int          sb_should_refresh (void);
-void toggle_sidebar(int menu);
+void         sb_toggle_virtual (void);
 
 #endif /* SIDEBAR_H */