From 3989fe0d5e024fd3ea75c109109bb554b65f9441 Mon Sep 17 00:00:00 2001 From: NijeboerFrank <44158679+NijeboerFrank@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:03:38 +0100 Subject: [PATCH] fix: ensure `r` key works when filtering files (#648) --- ui/ui.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/ui.go b/ui/ui.go index 32fb5da..a270a3e 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -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() }