m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-16 23:33:39 -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 d3485a06a1
commit 93b446a848

View File

@@ -3703,7 +3703,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)