From 9cb340e29f97f64af1146c426e14a6374d480110 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 29 Dec 2018 16:57:44 +0100 Subject: [PATCH] termio: inverse colors only after applying bold/faint (more precise) --- src/bin/termio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 13278bb6..f749ecec 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -5165,14 +5165,14 @@ _smart_apply(Evas_Object *obj) } if ((cells[x].att.fgintense) && (!fgext)) fg += 48; if ((cells[x].att.bgintense) && (!bgext)) bg += 48; + if ((cells[x].att.bold) && (!fgext)) fg += 12; + if ((cells[x].att.faint) && (!fgext)) fg += 24; if (cells[x].att.inverse ^ inv) { int t; t = fgext; fgext = bgext; bgext = t; t = fg; fg = bg; bg = t; } - if ((cells[x].att.bold) && (!fgext)) fg += 12; - if ((cells[x].att.faint) && (!fgext)) fg += 24; if ((tc[x].codepoint != codepoint) || (tc[x].bold != bold) || (tc[x].italic != italic) ||