]> granicus.if.org Git - neomutt/commitdiff
Fix #829.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 17 Oct 2001 17:03:19 +0000 (17:03 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 17 Oct 2001 17:03:19 +0000 (17:03 +0000)
curs_main.c

index 30e3390a85747af62cff31e2da2bb683d30e3b5a..01b1e6ea03da48ae321934bfd06c6cfa5fddebf4 100644 (file)
@@ -525,7 +525,7 @@ int mutt_index_menu (void)
 
     if (menu->menu == MENU_MAIN)
     {
-      if (Context && Context->hdrs)
+      if (Context && Context->hdrs && !(menu->current >= Context->vcount))
       {
        menu_check_recenter (menu);