]> granicus.if.org Git - mutt/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)
committerKevin McCarthy <kevin@8t8.us>
Fri, 5 May 2017 01:05:06 +0000 (18:05 -0700)
commit4b4049c8dba5fa1f50a468eea4c9f38f5e58865e
tree3e9612838da39cd494971901750b708ad785485f
parentcca31d794517b118f09eac2800d844aab7a1ee93
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