From 70a155ee302fadf13dffacae502957dfe0359c79 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 16 Dec 2020 20:04:55 -0500 Subject: [PATCH] Only underline matched chars in filter section when a filter is applied --- ui/stashitem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/stashitem.go b/ui/stashitem.go index a9d67d6..65a44f3 100644 --- a/ui/stashitem.go +++ b/ui/stashitem.go @@ -70,7 +70,7 @@ func stashItemView(b *strings.Builder, m stashModel, index int, md *markdown) { default: gutter = dullFuchsiaFg(verticalLine) icon = dullFuchsiaFg(icon) - if m.filterState == filterApplied || singleFilteredItem { + if m.currentSection().key == filterSection && m.filterState == filterApplied || singleFilteredItem { s := termenv.Style{}.Foreground(lib.Fuschia.Color()) title = styleFilteredText(title, m.filterInput.Value(), s, s.Underline()) } else {