mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
fix: restore hint for e / edit on the footer (#678)
This commit is contained in:
parent
3989fe0d5e
commit
009c37602a
1 changed files with 1 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue