m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

Rename: '--color hidden' to '--color nomatch'

This commit is contained in:
Junegunn Choi
2025-10-03 17:28:24 +09:00
parent 91e119a77e
commit 0df7d10550
6 changed files with 44 additions and 23 deletions

View File

@@ -256,7 +256,7 @@ func (result *Result) colorOffsets(matchOffsets []Offset, nthOffsets []Offset, t
base = base.WithAttr(attrNth)
}
if hidden {
base = base.WithFg(theme.Hidden)
base = base.WithFg(theme.Nomatch)
}
color := ansiToColorPair(ansi, base)
colors = append(colors, colorOffset{
@@ -267,7 +267,7 @@ func (result *Result) colorOffsets(matchOffsets []Offset, nthOffsets []Offset, t
} else {
color := colBase.WithAttr(attrNth)
if hidden {
color = color.WithFg(theme.Hidden)
color = color.WithFg(theme.Nomatch)
}
colors = append(colors, colorOffset{
offset: [2]int32{int32(start), int32(idx)},