]> granicus.if.org Git - neomutt/commit
Fix sidebar count updates when closing mailbox. (closes #3938)
authorKevin McCarthy <kevin@8t8.us>
Fri, 5 May 2017 01:05:06 +0000 (18:05 -0700)
committerRichard Russon <rich@flatcap.org>
Fri, 12 May 2017 13:08:59 +0000 (14:08 +0100)
commitd5ff30060723452c696d42e03f3153dd991ab20b
tree7528431839aa90c82ec13dde4da0b50d85f7caa9
parentc6bb866f337861a35b0710d9240ffd26c8fa01db
Fix sidebar count updates when closing mailbox. (closes #3938)

The context unread and flagged counts were being updated too early in
mx_close_mailbox().  Cancelling at any of the following prompts would
leave them in an incorrect state.  Additionally, $move could increase
the delete count (for flagged messages), and $delete, if answered no,
could turn off message deletion.

Move all the sidebar buffy stat updating to the bottom of the
function, after all the prompts and processing.
mx.c