Fix list-default to use tea.WithAltScreen option

This commit is contained in:
Kyosuke Fujimoto 2022-01-08 14:10:31 +09:00 committed by Christian Rocha
parent 14478e2a3c
commit 3a1b9fbe9f
1 changed files with 1 additions and 2 deletions

View File

@ -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)