mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-20 15:14:17 +02:00
Correct placement of stash hint in pager help
This commit is contained in:
parent
8b78086f56
commit
477979bce9
1 changed files with 6 additions and 4 deletions
10
ui/pager.go
10
ui/pager.go
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue