diff --git a/src/tui/navigate.go b/src/tui/navigate.go index 38b724f..c5bb2ad 100644 --- a/src/tui/navigate.go +++ b/src/tui/navigate.go @@ -337,7 +337,7 @@ func (n *Navigate) handleChangeCmd(cmd []string) tea.Cmd { } focusedEntry, ok := (*focusedItem).(parser.Entry) if !ok { - return nil + return func() tea.Msg { return setCommandLineMessageMsg{"Sorry, only entries can be renamed"} } } return makeChangeFieldAction(focusedEntry, "Title", newValue, focusChangedItemCmd(focusedEntry.UUID)) }