From 4202010724daaad780c37207b2c10970e10c2223 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 18 Jan 2014 00:13:29 +0100 Subject: [PATCH] fix bold issue with 256 colors test case was: echo -ne '\033[38;5;7m\033[48;5;0m\033[1mfoo' --- src/bin/termio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 4757d6e1..48add38f 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -1418,7 +1418,7 @@ _smart_apply(Evas_Object *obj) t = fgext; fgext = bgext; bgext = t; t = fg; fg = bg; bg = t; } - if (cells[x].att.bold) fg += 12; + if ((cells[x].att.bold) && (!fgext)) fg += 12; if (cells[x].att.faint) fg += 24; if ((tc[x].codepoint != codepoint) || (tc[x].fg != fg) ||