diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-20 00:49:08 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-01-20 01:02:58 +0900 |
| commit | a4db8bd7b550c010b99f26337d841395e319890a (patch) | |
| tree | 89f4ca038fa6c5a8d599133413852e9581e5ea02 /src/tui/light.go | |
| parent | f1c1b02d77a9d36cc5195a11ec2e162d829ddb9d (diff) | |
| download | fzf-a4db8bd7b550c010b99f26337d841395e319890a.tar.gz | |
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
Diffstat (limited to 'src/tui/light.go')
| -rw-r--r-- | src/tui/light.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |
