mirror of
https://github.com/charmbracelet/gum
synced 2024-05-21 07:36:44 +02:00
fix(choose): set initial page for selected
This commit is contained in:
parent
4b998515fd
commit
6763de12e8
|
@ -93,6 +93,7 @@ func (o Options) Run() error {
|
|||
pager.ActiveDot = subduedStyle.Render("•")
|
||||
pager.InactiveDot = verySubduedStyle.Render("•")
|
||||
pager.KeyMap = paginator.KeyMap{}
|
||||
pager.Page = startingIndex / o.Height
|
||||
|
||||
// Disable Keybindings since we will control it ourselves.
|
||||
tm, err := tea.NewProgram(model{
|
||||
|
|
Loading…
Reference in a new issue