Skip to content

Commit

Permalink
Fix bug where pager help isn't updated after an in-pager stash
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Oct 19, 2020
1 parent 0949a66 commit 3b06ccb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const (
)

var (
pagerHelpHeight int // strings.Count(pagerHelpView(pagerModel{}, 0), "\n")
pagerHelpHeight int

noteHeading = te.String(noteHeadingText).
Foreground(common.Cream.Color()).
Expand Down Expand Up @@ -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"
}

Expand Down

0 comments on commit 3b06ccb

Please sign in to comment.