From 3a83e211dfaef53773c1eb01f9da0ea195ef792f Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sat, 21 Oct 2023 15:20:14 +0100 Subject: fix new mail in limited view If new mail arrives that doesn't match the current limit, the Menu loses its selection leading to errors: "no visible messages" --- index/dlg_index.c | 1 + 1 file changed, 1 insertion(+) diff --git a/index/dlg_index.c b/index/dlg_index.c index 263aea1d1..c62d9b185 100644 --- a/index/dlg_index.c +++ b/index/dlg_index.c @@ -553,6 +553,7 @@ void update_index(struct Menu *menu, struct MailboxView *mv, enum MxStatus check else update_index_unthreaded(mv, check); + menu->max = m->vcount; const int old_index = menu_get_index(menu); int index = -1; if (oldcount) -- cgit v1.2.3