From 6ff8b36a239a0c57daf2d953b5ba1bf32ddb570d Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 26 Oct 2020 22:41:02 +0100 Subject: [PATCH] colors: do not use bold/bright and faint/dim at the same time In that case: use the bold font weight if available and the faint color --- src/bin/termiointernals.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/termiointernals.c b/src/bin/termiointernals.c index 4b374707..09e3095b 100644 --- a/src/bin/termiointernals.c +++ b/src/bin/termiointernals.c @@ -2659,9 +2659,9 @@ termio_internal_render(Termio *sd, fg += 48; if ((cells[x].att.bgintense) && (!bgext)) bg += 48; - if ((cells[x].att.bold) && (!fgext)) + if ((cells[x].att.bold && !cells[x].att.faint) && (!fgext)) fg += 12; - if ((cells[x].att.faint) && (!fgext)) + else if ((cells[x].att.faint) && (!fgext)) fg += 24; if (cells[x].att.inverse ^ inv) {