summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/vui.c b/vui.c
index 258b7f1..a73e15f 100644
--- a/vui.c
+++ b/vui.c
@@ -423,6 +423,11 @@ static void attr_chg(VuiAttr *ptr, VuiAttr to) {
VuiAttr from = *ptr;
if (from == to) return;
+ /* bold colors will keep the terminal bold, even on changing after */
+ if ((from & 8) && (~to & 8)) {
+ from |= A_BOLD;
+ }
+
int attr_chg_count = stdc_count_ones(ATTR_A(from) ^ ATTR_A(to));
int chg_attr = (attr_chg_count != 0);
if (!chg_attr) goto chg_colors;