diff options
author | Richard Russon <rich@flatcap.org> | 2023-10-21 15:20:14 +0100 |
---|---|---|
committer | Richard Russon <rich@flatcap.org> | 2023-10-23 14:00:25 +0100 |
commit | 3a83e211dfaef53773c1eb01f9da0ea195ef792f (patch) | |
tree | c79611bae27bdcb404862e8a97f36e3945bf5827 | |
parent | 15d0d95f39d6427ed7efd663ffd8d73053488caf (diff) |
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"
-rw-r--r-- | index/dlg_index.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |