Skip to content

Commit

Permalink
fix: deprecated use of start
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Nov 15, 2022
1 parent d2ae592 commit c57f98c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bubbletea/tea.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func MiddlewareWithProgramHandler(bth ProgramHandler, cp termenv.Profile) wish.M
}
}
}()
if err := p.Start(); err != nil {
if _, err := p.Run(); err != nil {
log.Print("app exit with error:", err)
}
// p.Kill() will force kill the program if it's still running,
Expand Down

0 comments on commit c57f98c

Please sign in to comment.