Correct placement of stash hint in pager help

This commit is contained in:
Christian Rocha 2020-10-18 22:12:08 -04:00 committed by Christian Rocha
commit 477979bce9

View file

@ -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"