summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWormHeamer2025-11-08 05:17:41 -0500
committerWormHeamer2025-11-08 05:17:41 -0500
commitc27b23a411369febfaa66ae67260b4f67b0b5b17 (patch)
tree41026dbc5161aceb43d34fdbc9f8ad5fb0099e35
parentf1163e3c697b25ffc17b061dfbf77f2aae2b2f27 (diff)
don't act as if prev bright color is bold if @to is actually bold
-rw-r--r--vui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vui.c b/vui.c
index 7afd974..c5b09bf 100644
--- a/vui.c
+++ b/vui.c
@@ -420,7 +420,7 @@ static void attr_chg(VuiAttr *ptr, VuiAttr to) {
if (from == to) return;
/* bold colors will keep the terminal bold, even on changing after */
- if ((from & 8) && (~to & 8)) {
+ if ((from & 8) && (~to & 8) && (~to & A_BOLD)) {
from |= A_BOLD;
}