Skip to content

Commit

Permalink
reload if action command match the runner command
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Feb 10, 2025
1 parent b6ecba5 commit 81cdcb9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/tui/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,12 @@ func (c *Runner) Update(msg tea.Msg) (Page, tea.Cmd) {

switch command.Mode {
case sunbeam.CommandModeSearch, sunbeam.CommandModeFilter, sunbeam.CommandModeDetail:
runner := NewRunner(c.extension, command, params)
if command.Name == c.command.Name {
c.params = params
return c, c.Reload()
}

runner := NewRunner(c.extension, command, params)
return c, PushPageCmd(runner)
case sunbeam.CommandModeSilent:
return c, func() tea.Msg {
Expand Down

0 comments on commit 81cdcb9

Please sign in to comment.