mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Only underline matched chars in filter section when a filter is applied
This commit is contained in:
parent
58df854466
commit
70a155ee30
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) {
|
||||||
default:
|
default:
|
||||||
gutter = dullFuchsiaFg(verticalLine)
|
gutter = dullFuchsiaFg(verticalLine)
|
||||||
icon = dullFuchsiaFg(icon)
|
icon = dullFuchsiaFg(icon)
|
||||||
if m.filterState == filterApplied || singleFilteredItem {
|
if m.currentSection().key == filterSection && m.filterState == filterApplied || singleFilteredItem {
|
||||||
s := termenv.Style{}.Foreground(lib.Fuschia.Color())
|
s := termenv.Style{}.Foreground(lib.Fuschia.Color())
|
||||||
title = styleFilteredText(title, m.filterInput.Value(), s, s.Underline())
|
title = styleFilteredText(title, m.filterInput.Value(), s, s.Underline())
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue