From 0c3df027ccc14acd249b906dbe6a75ae6ed2614f Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 16 Dec 2020 16:02:38 -0500 Subject: [PATCH] Correct empty stashed state when filter is applied --- ui/stash.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ui/stash.go b/ui/stash.go index f353d57..c47233a 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -1272,10 +1272,6 @@ func (m stashModel) headerView() string { func (m stashModel) populatedView() string { mds := m.getVisibleMarkdowns() - if len(mds) == 0 && m.filterApplied() { - return "" - } - var b strings.Builder // Empty states @@ -1307,6 +1303,8 @@ func (m stashModel) populatedView() string { } else { f("Loading your stash...") } + case filterSection: + return "" } }