mirror of
https://github.com/junegunn/fzf.git
synced 2026-10-13 16:39:04 +08:00
Fix: 'hidden' style not applied to text without colors
This commit is contained in:
1 parent
91beacf0f4
commit
3984161f6c
1 file changed
+5
-1
+5
-1
@@ -3710,7 +3710,11 @@ func (t *Terminal) printHighlighted(result Result, colBase tui.ColorPair, colMat
|
|||||||
}
|
}
|
||||||
|
|
||||||
if maxWidth > 0 {
|
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 {
|
if postTask != nil {
|
||||||
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw, lbg)
|
postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw, lbg)
|
||||||
|
|||||||
Reference in new issue
Block a user