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: neomutt-20160822~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ce083c402d2ae9a6a02e20d5d28f61c403f45df6;p=neomutt 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 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;