diff --git a/ui/stash.go b/ui/stash.go index 85b76b5..c3739b2 100644 --- a/ui/stash.go +++ b/ui/stash.go @@ -518,6 +518,12 @@ func (m *stashModel) handleDocumentBrowsing(msg tea.Msg) tea.Cmd { // Edit document in EDITOR case "e": md := m.selectedMarkdown() + + // In case no file is available + if md == nil { + return nil + } + return openEditor(md.localPath, 0) // Open document