From: Thomas Roessler Date: Thu, 6 Sep 2001 09:04:07 +0000 (+0000) Subject: Try to fix a boundary condition: Assume that you are in a limited X-Git-Tag: mutt-1-3-23-rel~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25953aac7c65f04d4bce3fffd14312f55d7537f6;p=mutt Try to fix a boundary condition: Assume that you are in a limited 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). --- diff --git a/curs_main.c b/curs_main.c index 07b82cbf..d3b69ff2 100644 --- a/curs_main.c +++ b/curs_main.c @@ -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) {