X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib-ui%2Fcurs_main.c;h=e23764e97acf323087008a577a69f769131d49b8;hp=5edd752d02314ba7ad5317b600096dfe7a4ff56d;hb=98cf5779d8184a74541be1bc61d15c5f35efd310;hpb=230399f9632c37b66c1c117a17e8327eae6b3235 diff --git a/lib-ui/curs_main.c b/lib-ui/curs_main.c index 5edd752..e23764e 100644 --- a/lib-ui/curs_main.c +++ b/lib-ui/curs_main.c @@ -10,18 +10,6 @@ * please see the file GPL in the top level source directory. */ -#if HAVE_CONFIG_H -# include "config.h" -#endif - -#include -#include -#include -#include -#include -#include -#include - #include #include @@ -488,7 +476,7 @@ int mutt_index_menu (void) ("Mailbox was externally modified. Flags may be wrong.")); else if (check == M_NEW_MAIL) { /* on new mail: redraw sidebar */ - sidebar_draw (CurrentMenu); + sidebar_draw (); mutt_message (_("New mail in this mailbox.")); if (option (OPTBEEPNEW)) @@ -528,10 +516,10 @@ int mutt_index_menu (void) if (op != -1) mutt_curs_set (0); if (menu->redraw & REDRAW_SIDEBAR) - sidebar_draw (menu->menu); + sidebar_draw (); if (menu->redraw & REDRAW_FULL) { menu_redraw_full (menu); - sidebar_draw (menu->menu); + sidebar_draw (); mutt_show_error (); } @@ -2320,7 +2308,7 @@ int mutt_index_menu (void) case OP_SIDEBAR_PREV: case OP_SIDEBAR_NEXT_NEW: case OP_SIDEBAR_PREV_NEW: - sidebar_scroll (op, menu->menu); + sidebar_scroll (op); break; default: if (menu->menu == MENU_MAIN)