forked from Mirrors/bubbletea
Fix list-default to use tea.WithAltScreen option
This commit is contained in:
parent
14478e2a3c
commit
3a1b9fbe9f
|
@ -77,8 +77,7 @@ func main() {
|
|||
m := model{list: list.NewModel(items, list.NewDefaultDelegate(), 0, 0)}
|
||||
m.list.Title = "My Fave Things"
|
||||
|
||||
p := tea.NewProgram(m)
|
||||
p.EnterAltScreen()
|
||||
p := tea.NewProgram(m, tea.WithAltScreen())
|
||||
|
||||
if err := p.Start(); err != nil {
|
||||
fmt.Println("Error running program:", err)
|
||||
|
|
Loading…
Reference in New Issue