From d2c1d9bfb0579c56e1ee1cb27e05a6e98f25d16e Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 12 Mar 2021 01:20:58 +0100 Subject: [PATCH] Omit unhandled error --- tea.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tea.go b/tea.go index ab221da..e62d4c3 100644 --- a/tea.go +++ b/tea.go @@ -309,7 +309,9 @@ func (p *Program) Start() error { if err != nil { return err } - defer p.restoreTerminal() + defer func() { + _ = p.restoreTerminal() + }() } // Initialize program