summaryrefslogtreecommitdiffstats
path: root/src/options.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2023-03-26 23:39:05 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2023-03-26 23:39:05 +0900
commit60f37aae2f2f5d087b95eb29fca64d86417e7734 (patch)
treeee0d76472325bda8712c6ab0e4f85bed59769fee /src/options.go
parentd7daf5f72411f29eca3ab398c7a8a951ca230cad (diff)
Respect 'regular' attribute in 'bw' base theme
Don't make the text bold if an element is explicitly specified as 'regular'. Fix #3222
Diffstat (limited to 'src/options.go')
-rw-r--r--src/options.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/options.go b/src/options.go
index f2de1d75..9f953bda 100644
--- a/src/options.go
+++ b/src/options.go
@@ -2003,9 +2003,7 @@ func postProcessOptions(opts *Options) {
theme := opts.Theme
boldify := func(c tui.ColorAttr) tui.ColorAttr {
dup := c
- if !theme.Colored {
- dup.Attr |= tui.Bold
- } else if (c.Attr & tui.AttrRegular) == 0 {
+ if (c.Attr & tui.AttrRegular) == 0 {
dup.Attr |= tui.Bold
}
return dup