diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-03 00:50:38 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-08-03 00:54:26 +0900 |
| commit | 179aec1578004c705522f5dc47190494988797b4 (patch) | |
| tree | fabf7c15badcef12159ba748bb165f50e1354042 /src | |
| parent | af0014aba8bc49f6acb35f96cb9642bf3d163edd (diff) | |
| download | fzf-179aec1578004c705522f5dc47190494988797b4.tar.gz | |
Fix '--color nth:regular' not to reset ANSI attributes of the original text
Diffstat (limited to 'src')
| -rw-r--r-- | src/result.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/result.go b/src/result.go index 3dfd58cc..0ad0994e 100644 --- a/src/result.go +++ b/src/result.go @@ -237,7 +237,7 @@ func (result *Result) colorOffsets(matchOffsets []Offset, nthOffsets []Offset, t if color.Fg().IsDefault() && origColor.HasBg() { color = origColor if curr.nth { - color = color.WithAttr(attrNth) + color = color.WithAttr(attrNth &^ tui.AttrRegular) } } else { color = origColor.MergeNonDefault(color) |
