From 60f37aae2f2f5d087b95eb29fca64d86417e7734 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 26 Mar 2023 23:39:05 +0900 Subject: Respect 'regular' attribute in 'bw' base theme Don't make the text bold if an element is explicitly specified as 'regular'. Fix #3222 --- src/options.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/options.go') 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 -- cgit v1.2.3