m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 15:23:48 -05:00

Fix: 'hidden' style not applied to text without colors

This commit is contained in:
Junegunn Choi
2025-10-02 19:20:50 +09:00
parent 91beacf0f4
commit 3984161f6c

View File

@@ -3710,7 +3710,11 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
}
if maxWidth > 0 {
t.printColoredString(t.window, line, offsets, colBase)
color := colBase
if hidden {
color = color.WithFg(t.theme.Hidden)
}
t.printColoredString(t.window, line, offsets, color)
}
if postTask != nil {
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw, lbg)