forked from Mirrors/bubbletea
parent
99ad2eda0d
commit
a520b7f4e1
3
tea.go
3
tea.go
|
@ -459,6 +459,9 @@ func (p *Program) Run() (Model, error) {
|
||||||
killed := p.ctx.Err() != nil
|
killed := p.ctx.Err() != nil
|
||||||
if killed {
|
if killed {
|
||||||
err = ErrProgramKilled
|
err = ErrProgramKilled
|
||||||
|
} else {
|
||||||
|
// Ensure we rendered the final state of the model.
|
||||||
|
p.renderer.write(model.View())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tear down.
|
// Tear down.
|
||||||
|
|
Loading…
Reference in New Issue