If a user deletes the current mailbox with "unmailboxes", but then adds
it back with "mailboxes", then we will highlight it correctly.
BotBuffy = b;
if (!Outgoing)
Outgoing = b;
+ if (!OpnBuffy && Context) {
+ /* This might happen if the user "unmailboxes *", then
+ * "mailboxes" our current mailbox back again */
+ if (mutt_strcmp (b->path, Context->path) == 0) {
+ OpnBuffy = b;
+ }
+ }
} else {
if (TopBuffy == b)
TopBuffy = buffy_going (TopBuffy);