From 7de986aa3a032139c93a58449e036c17e17b4b19 Mon Sep 17 00:00:00 2001 From: Mehdi ABAAKOUK Date: Tue, 7 Mar 2017 13:05:15 +0100 Subject: [PATCH] Fix uncollapse_new in pager (#447) In pager, the index refresher uses the current count as oldcount. This change fixes that. Closes #305 --- pager.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pager.c b/pager.c index 5de348bee..02d8a6398 100644 --- a/pager.c +++ b/pager.c @@ -2059,8 +2059,6 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) if (index && Context) { - oldcount = Context->msgcount; - index->max = Context->vcount; /* After the mailbox has been updated, * index->current might be invalid */ @@ -2072,6 +2070,8 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) update_index (index, Context, check, oldcount, index_hint); Context->quiet = q; + index->max = Context->vcount; + /* If these header pointers don't match, then our email may have * been deleted. Make the pointer safe, then leave the pager */ if (extra->hdr != Context->hdrs[Context->v2r[index->current]]) -- 2.50.1