changeset: 6697:c8613259dc38
user: Kevin McCarthy <[email protected]>
date: Wed Jun 22 09:20:39 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/c8613259dc38
Change sidebar next/prev-new to look at buffy->new too.
Look at new in addition to msg_unread count, to account for when
$mail_check_stats is unset or when the sidebar only shows the %n
status flag.
diffs (30 lines):
diff -r 3d87b0521a45 -r c8613259dc38 sidebar.c
--- a/sidebar.c Mon Jun 20 20:09:52 2016 -0700
+++ b/sidebar.c Wed Jun 22 09:20:39 2016 -0700
@@ -73,7 +73,7 @@
b = Incoming;
if (!b || (b == HilBuffy))
break;
- if (b->msg_unread > 0)
+ if (b->new || b->msg_unread > 0)
return b;
} while (b);
@@ -103,7 +103,7 @@
b = Outgoing;
if (!b || (b == HilBuffy))
break;
- if (b->msg_unread > 0)
+ if (b->new || b->msg_unread > 0)
return b;
} while (b);
@@ -403,7 +403,7 @@
if (!new_only)
continue;
- if ((b == OpnBuffy) || (b->msg_unread > 0) ||
+ if ((b == OpnBuffy) || (b->msg_unread > 0) || b->new ||
(b == HilBuffy) || (b->msg_flagged > 0))
continue;