]> granicus.if.org Git - neomutt/commit
fix mutt_buffy_notify() to properly update BuffyNotify
authorStefan Assmann <sassmann@kpanic.de>
Wed, 27 Jun 2018 08:15:05 +0000 (10:15 +0200)
committerRichard Russon <rich@flatcap.org>
Wed, 27 Jun 2018 11:10:06 +0000 (12:10 +0100)
commit85dea0791cbf6f479c45e280cea7b5376c365498
tree2929f58f850d11ac48df73801a874bf1fde2b71e
parent69ffa40079ae7127acd01e92b01bf67494e0e12d
fix mutt_buffy_notify() to properly update BuffyNotify

In commit
184244053 doxy: document buffy.c
the check for whether to call mutt_buffy_list() was changed from
if (mutt_buffy_check(false) && BuffyNotify)
to
if (BuffyNotify && (mutt_buffy_check(false) != 0))

By reversing the check mutt_buffy_check() never executes when
BuffyNotify is zero. However, it is essential to run mutt_buffy_check()
before checking BuffyNotify, as mutt_buffy_check() updates BuffyNotify.

Therefore return the check to its inital form

Fixes #1279
buffy.c