summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2025-10-02 19:20:50 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2025-10-09 00:17:00 +0900
commit3984161f6cefe8b434a002d08af3f7390bf1d273 (patch)
tree22fd1081d6ad07a265c1ea0396cc20bfa5c60631
parent91beacf0f4966e0e5ddbcdedae008d8a66f93ab9 (diff)
downloadfzf-3984161f6cefe8b434a002d08af3f7390bf1d273.tar.gz
Fix: 'hidden' style not applied to text without colors
-rw-r--r--src/terminal.go6
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)