mirror of
https://github.com/charmbracelet/glow
synced 2024-11-10 14:14:17 +00:00
Fix bug where pager help isn't updated after an in-pager stash
This commit is contained in:
parent
0949a6656b
commit
3b06ccbc34
1 changed files with 3 additions and 2 deletions
|
@ -32,7 +32,7 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
pagerHelpHeight int // strings.Count(pagerHelpView(pagerModel{}, 0), "\n")
|
||||
pagerHelpHeight int
|
||||
|
||||
noteHeading = te.String(noteHeadingText).
|
||||
Foreground(common.Cream.Color()).
|
||||
|
@ -460,7 +460,8 @@ func (m pagerModel) setNoteView(b *strings.Builder) {
|
|||
|
||||
func (m pagerModel) helpView() (s string) {
|
||||
memoOrStash := "m set memo"
|
||||
if m.authStatus == authOK && m.currentDocument.markdownType != stashedMarkdown {
|
||||
log.Println(m.currentDocument.markdownType)
|
||||
if m.authStatus == authOK && m.currentDocument.markdownType == localMarkdown {
|
||||
memoOrStash = "s stash this document"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue