From: Kevin McCarthy Date: Wed, 22 Jun 2016 16:20:39 +0000 (-0700) Subject: Change sidebar next/prev-new to look at buffy->new too. X-Git-Tag: mutt-1-7-rel~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ba2d8a79270ee621de2bdcedce4757eab73fe54;p=mutt 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. --- diff --git a/sidebar.c b/sidebar.c index e363063a..95a90800 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;