Skip to content

Commit

Permalink
fix: altscreen on local mode
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jul 12, 2023
1 parent 6cf1f20 commit 02eae11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/wishlist/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ func workLocally(config wishlist.Config, args []string) error {
// either no args or arg is a list
if len(args) == 0 || args[0] == "list" {
m := wishlist.NewListing(config.Endpoints, wishlist.NewLocalSSHClient())
_, err := tea.NewProgram(m).Run()
_, err := tea.NewProgram(m, tea.WithAltScreen()).Run()
return err //nolint: wrapcheck
}

Expand Down

0 comments on commit 02eae11

Please sign in to comment.