diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-05-03 10:07:08 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-05-03 10:07:08 +0000 |
commit | dadfa8d481d21123db2ed56c187a515b836c340b (patch) | |
tree | 4d1ffba881766153afd302e7ff7d2977a098afe0 /menu.c | |
parent | 6872c00039b4ae213ad62ea52bd3af878fef7455 (diff) |
Various fixes.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -274,10 +274,11 @@ void menu_redraw_current (MUTTMENU *menu) void menu_check_recenter (MUTTMENU *menu) { - if (menu->max <= menu->pagelen) + if (menu->max <= menu->pagelen && menu->top != 0) { menu->top = 0; set_option (OPTNEEDREDRAW); + menu->redraw |= REDRAW_INDEX; } else if (menu->current >= menu->top + menu->pagelen) { @@ -285,6 +286,7 @@ void menu_check_recenter (MUTTMENU *menu) menu->top = menu->current - menu->pagelen + 1; else menu->top += menu->pagelen * ((menu->current - menu->top) / menu->pagelen); + menu->redraw |= REDRAW_INDEX; } else if (menu->current < menu->top) { @@ -296,8 +298,8 @@ void menu_check_recenter (MUTTMENU *menu) if (menu->top < 0) menu->top = 0; } + menu->redraw |= REDRAW_INDEX; } - menu->redraw |= REDRAW_INDEX; } void menu_jump (MUTTMENU *menu) |