From: Martin Mares Date: Mon, 25 Jun 2007 20:26:41 +0000 (+0200) Subject: One more improvement to the flag highlighting mode (still 1.0). X-Git-Tag: v1.4~23 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=31a86c28fc16ad8eb3eeb0fa165f6ebb2747c681;p=checkmail.git One more improvement to the flag highlighting mode (still 1.0). --- diff --git a/cm.c b/cm.c index 38b6983..92141ef 100644 --- a/cm.c +++ b/cm.c @@ -560,7 +560,7 @@ redraw_line(int i) printw(" "); if (b->new) attrset(attrs[cc][hi][M_NEW]); - else if (b->flagged) + else if (b->flagged && b->o.show_flagged) attrset(attrs[cc][hi][M_FLAG]); printw("%-20s ", b->name); if (b->scanning < 0) @@ -596,14 +596,14 @@ redraw_line(int i) printw(" "); snip = 1; } - else if (b->flagged) + else if (b->flagged && b->o.show_flagged) { attrset(attrs[cc][hi][M_FLAG]); printw("%6d ", b->flagged); attrset(attrs[cc][hi][M_IDLE]); printw(" "); attrset(attrs[cc][0][M_FLAG]); /* We avoid the highlight intentionally */ - snip = b->o.show_flagged; + snip = 1; } if (snip && b->o.snippets && b->snippet[0]) {