The q key should quit when browsing a list of filtered documents

This commit is contained in:
Christian Rocha 2020-11-12 15:49:15 -05:00 committed by Christian Rocha
commit 005aa65d7b

View file

@ -245,7 +245,8 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case stateShowStash:
switch m.stash.state {
case stashStateSettingNote, stashStatePromptDelete, stashStateShowingError, stashStateSearchNotes, stashStateShowFiltered:
case stashStateSettingNote, stashStatePromptDelete,
stashStateShowingError, stashStateSearchNotes:
m.stash, cmd = stashUpdate(msg, m.stash)
return m, cmd
}