From 25953aac7c65f04d4bce3fffd14312f55d7537f6 Mon Sep 17 00:00:00 2001 From: Thomas Roessler Date: Thu, 6 Sep 2001 09:04:07 +0000 Subject: [PATCH] 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). --- curs_main.c | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- 2.40.0