From 009c37602af724f771307006b14da1e001edc323 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Mon, 3 Feb 2025 18:20:54 -0300 Subject: [PATCH] fix: restore hint for `e` / `edit` on the footer (#678) --- ui/stashhelp.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ui/stashhelp.go b/ui/stashhelp.go index 7c009e7..01a0458 100644 --- a/ui/stashhelp.go +++ b/ui/stashhelp.go @@ -100,7 +100,6 @@ func (m stashModel) helpView() (string, int) { } var ( - isEditable bool navHelp []string filterHelp []string selectionHelp []string @@ -132,16 +131,13 @@ func (m stashModel) helpView() (string, int) { filterHelp = []string{"/", "find"} } - if isEditable { - editHelp = []string{"e", "edit"} - } - // If there are errors if m.err != nil { appHelp = append(appHelp, "!", "errors") } appHelp = append(appHelp, "r", "refresh") + appHelp = append(appHelp, "e", "edit") appHelp = append(appHelp, "q", "quit") // Detailed help