Don't close the msgs channel on shutdown

This commit is contained in:
Christian Rocha
2021-07-30 11:25:00 -04:00
parent 5f41a91e02
commit ea0550121e

2
tea.go
View File

@@ -481,8 +481,6 @@ func (p *Program) shutdown(kill bool) {
p.renderer.stop()
}
close(p.done)
close(p.msgs)
p.msgs = nil
p.ExitAltScreen()
p.DisableMouseCellMotion()
p.DisableMouseAllMotion()