diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-03-09 13:09:52 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-03-09 13:09:52 +0000 |
commit | fd816365cb25c5ffd7c9df9a682a2acd15f23b1b (patch) | |
tree | 985049348bf45335f03b625b36e10fa1e590390b /menu.c | |
parent | f6b31275137596fae70cda1ea3f11104c23a953f (diff) |
handler.c: Properly handle message/external-body expiry.
menu.c: Small fix from Liviu.
send.c: Honor confirm_create for FCCs.
cvs: ----------------------------------------------------------------------
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -274,13 +274,16 @@ void menu_redraw_current (MUTTMENU *menu) void menu_check_recenter (MUTTMENU *menu) { - if (menu->current >= menu->top + menu->pagelen) + if (menu->max <= menu->pagelen) + { + menu->top = 0; + } + else if (menu->current >= menu->top + menu->pagelen) { if (option (OPTMENUSCROLL)) 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) { @@ -292,8 +295,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) |