summaryrefslogtreecommitdiff
path: root/src/ansi.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-01-20 00:49:08 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-01-20 01:02:58 +0900
commita4db8bd7b550c010b99f26337d841395e319890a (patch)
tree89f4ca038fa6c5a8d599133413852e9581e5ea02 /src/ansi.go
parentf1c1b02d77a9d36cc5195a11ec2e162d829ddb9d (diff)
downloadfzf-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/ansi.go')
-rw-r--r--src/ansi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ansi.go b/src/ansi.go
index 37d9c767..687b9524 100644
--- a/src/ansi.go
+++ b/src/ansi.go
@@ -44,7 +44,7 @@ func (s *ansiState) ToString() string {
}
ret := ""
- if s.attr&tui.Bold > 0 {
+ if s.attr&tui.Bold > 0 || s.attr&tui.BoldForce > 0 {
ret += "1;"
}
if s.attr&tui.Dim > 0 {