mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-22 16:14:17 +02:00
Merge f4512a4c7d into e5cb757278
This commit is contained in:
commit
5f757b31bb
1 changed files with 5 additions and 2 deletions
|
|
@ -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())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue