|
@@ -32,11 +32,11 @@ func New() *Picker {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Show a horizontal bottom border to visually separate input from list.
|
|
// 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.BottomLeft = borderSet.Bottom
|
|
|
borderSet.BottomRight = borderSet.Bottom
|
|
borderSet.BottomRight = borderSet.Bottom
|
|
|
|
|
+
|
|
|
p.input.
|
|
p.input.
|
|
|
SetChangedFunc(p.onInputChanged).
|
|
SetChangedFunc(p.onInputChanged).
|
|
|
SetLabel("> ").
|
|
SetLabel("> ").
|
|
@@ -45,8 +45,6 @@ func New() *Picker {
|
|
|
SetBorderStyle(tcell.StyleDefault.Dim(true)).
|
|
SetBorderStyle(tcell.StyleDefault.Dim(true)).
|
|
|
SetInputCapture(p.onInputCapture)
|
|
SetInputCapture(p.onInputCapture)
|
|
|
|
|
|
|
|
- p.list.SetSnapToItems(true)
|
|
|
|
|
-
|
|
|
|
|
p.
|
|
p.
|
|
|
SetDirection(tview.FlexRow).
|
|
SetDirection(tview.FlexRow).
|
|
|
// bottom border + value
|
|
// bottom border + value
|