mirror of
https://github.com/charmbracelet/glow.git
synced 2026-08-09 09:49:09 +02:00
fix: ensure r key works when filtering files (#648)
This commit is contained in:
parent
7b3bfac306
commit
3989fe0d5e
1 changed files with 6 additions and 0 deletions
6
ui/ui.go
6
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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue