From 3b06ccbc34ad8d9ba511ce94d53e93c6395d8e00 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sun, 18 Oct 2020 23:11:47 -0400 Subject: [PATCH] Fix bug where pager help isn't updated after an in-pager stash --- ui/pager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/pager.go b/ui/pager.go index f868778..db1a5bd 100644 --- a/ui/pager.go +++ b/ui/pager.go @@ -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" }