From e23f237fb72effb4eb47929d4fa4ace6ba044dfc Mon Sep 17 00:00:00 2001 From: Markus Billharz <50644328+MarkusBillharz@users.noreply.github.com> Date: Thu, 15 May 2025 00:31:23 +0200 Subject: [PATCH] fix: only show edit if documents are available --- ui/stashhelp.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/stashhelp.go b/ui/stashhelp.go index 01a0458..6c0b474 100644 --- a/ui/stashhelp.go +++ b/ui/stashhelp.go @@ -137,7 +137,11 @@ func (m stashModel) helpView() (string, int) { } appHelp = append(appHelp, "r", "refresh") - appHelp = append(appHelp, "e", "edit") + + if numDocs > 0 { + appHelp = append(appHelp, "e", "edit") + } + appHelp = append(appHelp, "q", "quit") // Detailed help