fix infinite loop after sidebar visibility toggle (oops!)
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@156
e385b8ad-14ed-0310-8656-
cc95a2468c6d
BuffyNotify++;
tmp->has_new = tmp->new > 0;
}
- if (BuffyCount > 0)
+ if (BuffyCount > 0 && SidebarWidth > 0)
draw_sidebar (CurrentMenu);
return (BuffyCount);
}
saveSidebarWidth = SidebarWidth;
SidebarWidth = 0;
} else if(!prev_show_value && option(OPTMBOXPANE)) {
- SidebarWidth = saveSidebarWidth;
+ SidebarWidth = 0;
/* after toggle: force recounting of all mail */
mutt_buffy_check(1);
+ SidebarWidth = saveSidebarWidth;
}
prev_show_value = option(OPTMBOXPANE);
}