mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-21 07:34:18 +02:00
fix: adaptive document(s) (#998)
This commit is contained in:
parent
e5cb757278
commit
c6c5e03e1f
1 changed files with 2 additions and 2 deletions
|
|
@ -14,6 +14,7 @@ import (
|
|||
tea "github.com/charmbracelet/bubbletea"
|
||||
"github.com/charmbracelet/lipgloss"
|
||||
"github.com/charmbracelet/log"
|
||||
"github.com/dustin/go-humanize/english"
|
||||
"github.com/muesli/reflow/ansi"
|
||||
"github.com/muesli/reflow/truncate"
|
||||
"github.com/sahilm/fuzzy"
|
||||
|
|
@ -778,8 +779,7 @@ func (m stashModel) headerView() string {
|
|||
|
||||
switch v.key {
|
||||
case documentsSection:
|
||||
s = fmt.Sprintf("%d documents", localCount)
|
||||
|
||||
s = fmt.Sprintf("%s", english.Plural(localCount, "document", ""))
|
||||
case filterSection:
|
||||
s = fmt.Sprintf("%d “%s”", len(m.filteredMarkdowns), m.filterInput.Value())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue