void set_buffystats (CONTEXT* Context)
{
BUFFY* tmp = Incoming;
+ if (!Context)
+ return;
while (tmp)
{
if (strcmp (tmp->path, Context->path) == 0)
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);
}
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:
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;