fix: ensure r key works when filtering files (#648)

This commit is contained in:
NijeboerFrank 2025-02-03 21:03:38 +01:00 committed by GitHub
commit 3989fe0d5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,7 +177,13 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
return m, tea.Batch(batch...)
}
case "r":
var cmd tea.Cmd
if m.state == stateShowStash {
// pass through all keys if we're editing the filter
if m.stash.filterState == filtering {
m.stash, cmd = m.stash.update(msg)
return m, cmd
}
m.stash.markdowns = nil
return m, m.Init()
}