]> granicus.if.org Git - neomutt/commitdiff
Try to fix a boundary condition: Assume that you are in a limited
authorThomas Roessler <roessler@does-not-exist.org>
Thu, 6 Sep 2001 09:04:07 +0000 (09:04 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Thu, 6 Sep 2001 09:04:07 +0000 (09:04 +0000)
view which includes the folder's last message.  Display that
message.  Wait until a new message is added to the current folder
which does NOT match the limit pattern. Press tab.  Mutt would get
confused.  I think that this patch fixes the problem (but I'm not
entirely sure).

curs_main.c

index 07b82cbf6ac09bbc547e509de57edad44a273d01..d3b69ff2937bd807f5d1393b52cb9a797b247c18 100644 (file)
@@ -618,7 +618,14 @@ int mutt_index_menu (void)
       mutt_clear_error ();
     }
     else
+    {
+      if (menu->current < menu->max)
+       menu->oldcurrent = menu->current;
+      else
+       menu->oldcurrent = -1;
+      
       mutt_curs_set (1);       /* fallback from the pager */
+    }
 
     switch (op)
     {