Skip to content

Commit

Permalink
Fix list-default to use tea.WithAltScreen option
Browse files Browse the repository at this point in the history
  • Loading branch information
lusingander authored and meowgorithm committed Jan 8, 2022
1 parent 14478e2 commit 3a1b9fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/list-default/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3a1b9fb

Please sign in to comment.