mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
fix: only show edit if documents are available
This commit is contained in:
parent
ee27edd3b1
commit
e23f237fb7
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue