Skip to content
Myr

Fix: 'hidden' style not applied to text without colors

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Junegunn Choi · committed by Junegunn Choi · parent 91beacf · Browse files · 1 file+5 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−1 removed

  • other:+5 added−1 removed

1 file+5 added−1 removed

modified:src/terminal.go+5 added-1 removed
3708 unmodified lines
3709 displayWidth = t.displayWidthWithLimit(line, 0, displayWidth)3710 }37113712 if maxWidth > 0 {3713 color := colBase3714 if hidden {3715 color = color.WithFg(t.theme.Hidden)3716 }3713 t.printColoredString(t.window, line, offsets, colBase)3717 t.printColoredString(t.window, line, offsets, color)3718 }3719 if postTask != nil {3720 postTask(actualLineNum, displayWidth, wasWrapped, forceRedraw, lbg)3721 } else {
3513 unmodified lines