mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 06:04:18 +00:00
Correct empty stashed state when filter is applied
This commit is contained in:
parent
2a688fc71e
commit
0c3df027cc
1 changed files with 2 additions and 4 deletions
|
@ -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 ""
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue