From c57f98cdb75b68c56b22baed1d7bf8dea5490086 Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Tue, 15 Nov 2022 15:26:21 -0300 Subject: [PATCH] fix: deprecated use of start --- bubbletea/tea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bubbletea/tea.go b/bubbletea/tea.go index 5b66405..4e85782 100644 --- a/bubbletea/tea.go +++ b/bubbletea/tea.go @@ -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,