From ce083c402d2ae9a6a02e20d5d28f61c403f45df6 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Wed, 22 Jun 2016 09:20:39 -0700 Subject: [PATCH] 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. --- sidebar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sidebar.c b/sidebar.c index e363063a9..95a908008 100644 --- a/sidebar.c +++ b/sidebar.c @@ -73,7 +73,7 @@ static BUFFY *find_next_new (int wrap) 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 @@ static BUFFY *find_prev_new (int wrap) 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 @@ static void update_buffy_visibility (BUFFY **arr, int arr_len) 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; -- 2.50.1