From: Karel Zak Date: Thu, 15 Dec 2011 22:21:55 +0000 (+0100) Subject: properly update context numbers X-Git-Tag: neomutt-20160404~13^2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=63395c76ab0f77be83f0774109aaddf9d2d42759;p=neomutt properly update context numbers Signed-off-by: Karel Zak --- diff --git a/mutt_notmuch.c b/mutt_notmuch.c index a736383ce..93222ca6f 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -442,7 +442,10 @@ int nm_read_query(CONTEXT *ctx) create_hdrdata(h, path, m); - ctx->size += h->content->length; + h->index = ctx->msgcount; + ctx->size += h->content->length + + h->content->offset + - h->content->hdr_offset; ctx->hdrs[ctx->msgcount] = h; ctx->msgcount++; @@ -452,6 +455,7 @@ int nm_read_query(CONTEXT *ctx) notmuch_query_destroy(q); release_db(ctx); + mx_update_context(ctx, ctx->msgcount); return 0; }