From 3984161f6cefe8b434a002d08af3f7390bf1d273 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Thu, 2 Oct 2025 19:20:50 +0900 Subject: [PATCH] Fix: 'hidden' style not applied to text without colors --- src/terminal.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)