Force a full repaint when resizing the window

v0.13.4 introduced a regression where lines weren't always cleared when
resizing the window resulting in the presence of rendering artifacts.
This commit fixes that.
This commit is contained in:
Christian Rocha
2021-05-28 21:41:42 -04:00
parent 29b7de4b7c
commit 3256fae4d4
4 changed files with 9 additions and 0 deletions

3
tea.go
View File

@@ -438,6 +438,9 @@ func (p *Program) Start() error {
}
continue
case WindowSizeMsg:
p.renderer.repaint()
case enterAltScreenMsg:
p.EnterAltScreen()