diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2025-10-02 19:20:50 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2025-10-09 00:17:00 +0900 |
| commit | 3984161f6cefe8b434a002d08af3f7390bf1d273 (patch) | |
| tree | 22fd1081d6ad07a265c1ea0396cc20bfa5c60631 | |
| parent | 91beacf0f4966e0e5ddbcdedae008d8a66f93ab9 (diff) | |
| download | fzf-3984161f6cefe8b434a002d08af3f7390bf1d273.tar.gz | |
Fix: 'hidden' style not applied to text without colors
| -rw-r--r-- | src/terminal.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/terminal.go b/src/terminal.go index e96ac96f..b715c458 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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) |
