mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 06:16:03 +03: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 New Issue
Block a user