fix: restore hint for e / edit on the footer (#678)

This commit is contained in:
Andrey Nering 2025-02-03 18:20:54 -03:00 committed by GitHub
commit 009c37602a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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