fix: only show edit if documents are available

This commit is contained in:
Markus Billharz 2025-05-15 00:31:23 +02:00 committed by Christian Rocha
commit e23f237fb7

View file

@ -137,7 +137,11 @@ func (m stashModel) helpView() (string, int) {
}
appHelp = append(appHelp, "r", "refresh")
if numDocs > 0 {
appHelp = append(appHelp, "e", "edit")
}
appHelp = append(appHelp, "q", "quit")
// Detailed help