X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=sidebar.c;h=b84f033f45e8b2e29d9063abe9d68ac240375cf8;hp=f5206c9ecb9d39e648d3f62237f11224ccb02932;hb=2ecf708808a8d719bf7cf48d1f8c896d202b785d;hpb=72bfbd51aa27f3f0ac1831bee55905e13d45cef1 diff --git a/sidebar.c b/sidebar.c index f5206c9..b84f033 100644 --- a/sidebar.c +++ b/sidebar.c @@ -243,6 +243,8 @@ int draw_sidebar(int menu) { SidebarWidth = 0; } else if(!prev_show_value && option(OPTMBOXPANE)) { SidebarWidth = saveSidebarWidth; + /* after toggle: force recounting of all mail */ + mutt_buffy_check(1); } prev_show_value = option(OPTMBOXPANE); } @@ -344,10 +346,7 @@ void scroll_sidebar(int op, int menu) break; case OP_SIDEBAR_NEXT_NEW: if ( (tmp = exist_next_new()) == NULL) - { - if (CurBuffy->next == NULL) return; - CurBuffy = CurBuffy->next; - } + return; else CurBuffy = tmp; break; case OP_SIDEBAR_PREV: @@ -356,10 +355,7 @@ void scroll_sidebar(int op, int menu) break; case OP_SIDEBAR_PREV_NEW: if ( (tmp = exist_prev_new()) == NULL) - { - if(CurBuffy->prev == NULL) return; - CurBuffy = CurBuffy->prev; - } + return; else CurBuffy = tmp; break;