summaryrefslogtreecommitdiffstats
path: root/ui/pager.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/pager.go')
-rw-r--r--ui/pager.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/pager.go b/ui/pager.go
index 575adc0..0cebdd9 100644
--- a/ui/pager.go
+++ b/ui/pager.go
@@ -528,10 +528,15 @@ func (m pagerModel) helpView() (s string) {
memoOrStash = "s stash this document"
}
+ editOrBlank := "e edit this document"
+ if m.currentDocument.docType != LocalDoc || m.currentDocument.localPath == "" {
+ editOrBlank = ""
+ }
+
col1 := []string{
"g/home go to top",
"G/end go to bottom",
- "e edit this document",
+ editOrBlank,
memoOrStash,
"esc back to files",
"q quit",