X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=5692cddbba0949ff953b3890d80f79c415e3c135;hp=615ee10982f70e592f262a3015286162d7d5416e;hb=777c7ccc259a8b7f5fadac70267c59e62a2cb300;hpb=034a458f92b2b4e3fd89318b5da672454ada7afa diff --git a/sidebar.c b/sidebar.c index 615ee10..5692cdd 100644 --- a/sidebar.c +++ b/sidebar.c @@ -241,10 +241,9 @@ int draw_sidebar(int menu) { saveSidebarWidth = SidebarWidth; SidebarWidth = 0; } else if(!prev_show_value && option(OPTMBOXPANE)) { - SidebarWidth = 0; - /* after toggle: force recounting of all mail */ - mutt_buffy_check(1); SidebarWidth = saveSidebarWidth; + /* after toggle: force recounting of all mail */ + mutt_buffy_check(2); } prev_show_value = option(OPTMBOXPANE); } @@ -252,7 +251,7 @@ int draw_sidebar(int menu) { if ( SidebarWidth == 0 ) return 0; /* draw the divider */ - //SETCOLOR(MT_COLOR_STATUS); + /* SETCOLOR(MT_COLOR_STATUS); */ SETCOLOR(MT_COLOR_SIDEBAR); for (lines = option (OPTSTATUSONTOP) ? 0 : 1; lines < LINES-1-(menu != MENU_PAGER || option (OPTSTATUSONTOP)); lines++ ) {