From a4db8bd7b550c010b99f26337d841395e319890a Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 20 Jan 2025 00:49:08 +0900 Subject: Make 'current-fg' inherit from 'fg' to simplify configuration If you do not want 'current-fg' to inherit attributes of 'fg', prefix it with 'regular:' to reset them. # italic and underline fzf --color fg:italic,current-fg:underline # only underline fzf --color fg:italic,current-fg:regular:underline --- src/tui/light.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tui/light.go') diff --git a/src/tui/light.go b/src/tui/light.go index 48202bce..f4688060 100644 --- a/src/tui/light.go +++ b/src/tui/light.go @@ -1011,7 +1011,7 @@ func attrCodes(attr Attr) []string { if (attr & AttrClear) > 0 { return codes } - if (attr & Bold) > 0 { + if (attr&Bold) > 0 || (attr&BoldForce) > 0 { codes = append(codes, "1") } if (attr & Dim) > 0 { -- cgit v1.2.3