diff --git a/pkg/picker/picker.go b/pkg/picker/picker.go index dd2581f..860fd3e 100644 --- a/pkg/picker/picker.go +++ b/pkg/picker/picker.go @@ -32,11 +32,11 @@ func New() *Picker { } // Show a horizontal bottom border to visually separate input from list. - borderSet := tview.BorderSet{ - Bottom: tview.BoxDrawingsLightHorizontal, - } + var borderSet tview.BorderSet + borderSet.Bottom = tview.BoxDrawingsLightHorizontal borderSet.BottomLeft = borderSet.Bottom borderSet.BottomRight = borderSet.Bottom + p.input. SetChangedFunc(p.onInputChanged). SetLabel("> "). @@ -45,8 +45,6 @@ func New() *Picker { SetBorderStyle(tcell.StyleDefault.Dim(true)). SetInputCapture(p.onInputCapture) - p.list.SetSnapToItems(true) - p. SetDirection(tview.FlexRow). // bottom border + value