From e3ceb6c960c3b81114310e619c573a76e9c339b5 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Sat, 3 Dec 2016 15:24:32 -0800 Subject: [PATCH] Change sidebar_spoolfile coloring to be lower precedence. Give sidebar_new and sidebar_flagged higher precedence than sidebar_spoolfile, so that new and flagged message colors will show up for the spoolfile in the sidebar. Thanks to Till Smejkal for the original patch. --- sidebar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sidebar.c b/sidebar.c index ad0464423..b2f92b0b8 100644 --- a/sidebar.c +++ b/sidebar.c @@ -681,13 +681,13 @@ static void draw_sidebar (int num_rows, int num_cols, int div_width) } else if (entryidx == HilIndex) SETCOLOR(MT_COLOR_HIGHLIGHT); - else if ((ColorDefs[MT_COLOR_SB_SPOOLFILE] != 0) && - (mutt_strcmp (b->path, Spoolfile) == 0)) - SETCOLOR(MT_COLOR_SB_SPOOLFILE); else if ((b->msg_unread > 0) || (b->new)) SETCOLOR(MT_COLOR_NEW); else if (b->msg_flagged > 0) SETCOLOR(MT_COLOR_FLAGGED); + else if ((ColorDefs[MT_COLOR_SB_SPOOLFILE] != 0) && + (mutt_strcmp (b->path, Spoolfile) == 0)) + SETCOLOR(MT_COLOR_SB_SPOOLFILE); else { if (ColorDefs[MT_COLOR_ORDINARY] != 0) -- 2.40.0