- re-calculate sidebar boundaries upon non-interactive change of current folder
git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@786
e385b8ad-14ed-0310-8656-
cc95a2468c6d
static short prev_show_value;
/* computes first entry to be shown */
static short prev_show_value;
/* computes first entry to be shown */
-void calc_boundaries (int menu)
-{
-
+static void calc_boundaries (void) {
if (list_empty(Incoming))
return;
if (CurBuffy < 0 || CurBuffy >= Incoming->length)
if (list_empty(Incoming))
return;
if (CurBuffy < 0 || CurBuffy >= Incoming->length)
/* internally sets item to buf */
void sidebar_set_current (const char* buf) {
int i = buffy_lookup (buf);
/* internally sets item to buf */
void sidebar_set_current (const char* buf) {
int i = buffy_lookup (buf);
}
/* fix counters for a context
}
/* fix counters for a context
}
if (TopBuffy==0 || CurBuffy==0)
}
if (TopBuffy==0 || CurBuffy==0)
/* save or restore the value SidebarWidth */
if (prev_show_value != option (OPTMBOXPANE)) {
/* save or restore the value SidebarWidth */
if (prev_show_value != option (OPTMBOXPANE)) {
- calc_boundaries (menu);