diff --git a/ui/stash.go b/ui/stash.go index c3739b2..31a1e4b 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -778,8 +778,11 @@ func (m stashModel) headerView() string { switch v.key { case documentsSection: - s = fmt.Sprintf("%d documents", localCount) - + if localCount == 1 { + s = fmt.Sprintf("%d document", localCount) + } else { + s = fmt.Sprintf("%d documents", localCount) + } case filterSection: s = fmt.Sprintf("%d ā€œ%sā€", len(m.filteredMarkdowns), m.filterInput.Value()) }