diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index dfe3a29..73d466a 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -78,5 +78,5 @@ func (g *Gui) registerPath(node *tview.TreeNode) { // switchPanel switches to focus on the given Primitive. func (g *Gui) switchPanel(p tview.Primitive) { - g.application.SetFocus(g.resultsItem) + g.application.SetFocus(p) }