From 31a86c28fc16ad8eb3eeb0fa165f6ebb2747c681 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 25 Jun 2007 22:26:41 +0200 Subject: [PATCH] One more improvement to the flag highlighting mode (still 1.0). --- cm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]) { -- 2.39.5