summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2018-12-29 16:57:44 +0100
committerBoris Faure <billiob@gmail.com>2018-12-29 16:57:44 +0100
commit9cb340e29f97f64af1146c426e14a6374d480110 (patch)
tree9fb68ac4a88759134cdcb40d1564697d8b452ec5 /src
parent6e8faa30a762739bb07504134a20289eae8bb1bf (diff)
termio: inverse colors only after applying bold/faint (more precise)
Diffstat (limited to 'src')
-rw-r--r--src/bin/termio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index 13278bb..f749ece 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -5165,14 +5165,14 @@ _smart_apply(Evas_Object *obj)
5165 } 5165 }
5166 if ((cells[x].att.fgintense) && (!fgext)) fg += 48; 5166 if ((cells[x].att.fgintense) && (!fgext)) fg += 48;
5167 if ((cells[x].att.bgintense) && (!bgext)) bg += 48; 5167 if ((cells[x].att.bgintense) && (!bgext)) bg += 48;
5168 if ((cells[x].att.bold) && (!fgext)) fg += 12;
5169 if ((cells[x].att.faint) && (!fgext)) fg += 24;
5168 if (cells[x].att.inverse ^ inv) 5170 if (cells[x].att.inverse ^ inv)
5169 { 5171 {
5170 int t; 5172 int t;
5171 t = fgext; fgext = bgext; bgext = t; 5173 t = fgext; fgext = bgext; bgext = t;
5172 t = fg; fg = bg; bg = t; 5174 t = fg; fg = bg; bg = t;
5173 } 5175 }
5174 if ((cells[x].att.bold) && (!fgext)) fg += 12;
5175 if ((cells[x].att.faint) && (!fgext)) fg += 24;
5176 if ((tc[x].codepoint != codepoint) || 5176 if ((tc[x].codepoint != codepoint) ||
5177 (tc[x].bold != bold) || 5177 (tc[x].bold != bold) ||
5178 (tc[x].italic != italic) || 5178 (tc[x].italic != italic) ||