diff --git a/pkg/gui/context/list_context_trait.go b/pkg/gui/context/list_context_trait.go index eb738e332..c0e5ca04f 100644 --- a/pkg/gui/context/list_context_trait.go +++ b/pkg/gui/context/list_context_trait.go @@ -102,7 +102,7 @@ func (self *ListContextTrait) HandleRender() error { } func (self *ListContextTrait) OnSearchSelect(selectedLineIdx int) error { - self.GetList().SetSelection(selectedLineIdx) + self.GetList().SetSelection(self.ViewIndexToModelIndex(selectedLineIdx)) return self.HandleFocus(types.OnFocusOpts{}) }