[vte] widget: Respect "bold color" even when "bold is bright" is disabled



commit 6bef0ec9e2c67257d87229b5f2035f3b8f487818
Author: Egmont Koblinger <egmont gmail com>
Date:   Sun Jan 14 00:11:29 2018 +0100

    widget: Respect "bold color" even when "bold is bright" is disabled
    
    https://bugzilla.gnome.org/show_bug.cgi?id=792501

 src/vte.cc |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 19f2b7b..4343f1f 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -8872,10 +8872,12 @@ VteTerminalPrivate::determine_colors(VteCellAttr const* attr,
        }
 
        /* Handle bold by using set bold color or brightening */
-       if (attr->bold() && m_bold_is_bright) {
-               if (fore == VTE_DEFAULT_FG)
+        if (attr->bold()) {
+                if (fore == VTE_DEFAULT_FG) {
                        fore = VTE_BOLD_FG;
-               else if (fore >= VTE_LEGACY_COLORS_OFFSET && fore < VTE_LEGACY_COLORS_OFFSET + 
VTE_LEGACY_COLOR_SET_SIZE) {
+                } else if (m_bold_is_bright &&
+                           fore >= VTE_LEGACY_COLORS_OFFSET &&
+                           fore < VTE_LEGACY_COLORS_OFFSET + VTE_LEGACY_COLOR_SET_SIZE) {
                        fore += VTE_COLOR_BRIGHT_OFFSET;
                }
        }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]