This commit is contained in:
Ophir Bleicher 2026-08-04 18:41:34 +04:00 committed by GitHub
commit 5f757b31bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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())
}