summaryrefslogtreecommitdiffstats
path: root/src/terminal.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/terminal.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/terminal.go')
-rw-r--r--src/terminal.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/terminal.go b/src/terminal.go
index 5196d5cc..468b90f8 100644
--- a/src/terminal.go
+++ b/src/terminal.go
@@ -201,7 +201,6 @@ type Terminal struct {
tabstop int
margin [4]sizeSpec
padding [4]sizeSpec
- strong tui.Attr
unicode bool
listenPort *int
borderShape tui.BorderShape
@@ -541,10 +540,6 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
if len(opts.Preview.command) > 0 || hasPreviewAction(opts) || opts.ListenPort != nil {
previewBox = util.NewEventBox()
}
- strongAttr := tui.Bold
- if !opts.Bold {
- strongAttr = tui.AttrRegular
- }
var renderer tui.Renderer
fullscreen := !opts.Height.auto && (opts.Height.size == 0 || opts.Height.percent && opts.Height.size == 100)
if fullscreen {
@@ -623,7 +618,6 @@ func NewTerminal(opts *Options, eventBox *util.EventBox) *Terminal {
previewLabelOpts: opts.PreviewLabel,
cleanExit: opts.ClearOnExit,
paused: opts.Phony,
- strong: strongAttr,
cycle: opts.Cycle,
headerFirst: opts.HeaderFirst,
headerLines: opts.HeaderLines,