Fix a bug where the top line wasn't being cleared on render

This commit is contained in:
Christian Rocha
2020-01-15 23:28:49 -05:00
parent da9de0c42b
commit f13ba01ff0

3
tea.go
View File

@@ -188,9 +188,10 @@ func clearLine() {
// Clear a given number of lines
func clearLines(n int) {
clearLine()
for i := 0; i < n; i++ {
clearLine()
cursorPrevLine(1)
clearLine()
}
}