Skip to content

Commit

Permalink
Correct placement of stash hint in pager help
Browse files Browse the repository at this point in the history
  • Loading branch information
meowgorithm committed Oct 19, 2020
1 parent 8b78086 commit 477979b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ui/pager.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,17 +469,19 @@ func pagerSetNoteView(b *strings.Builder, m pagerModel) {
}

func pagerHelpView(m pagerModel, width int) (s string) {
memoOrStash := "m set memo"
if m.authStatus == authOK && m.currentDocument.markdownType != stashedMarkdown {
memoOrStash = "s stash this document"
}

col1 := [...]string{
"g/home go to top",
"G/end go to bottom",
"",
"m set memo",
memoOrStash,
"esc back to files",
"q quit",
}
if m.authStatus == authOK && m.currentDocument.markdownType != stashedMarkdown {
col1[5] = "s stash this document"
}

s += "\n"
s += "k/↑ up " + col1[0] + "\n"
Expand Down

0 comments on commit 477979b

Please sign in to comment.