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
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
1 changed files with 2 additions and 1 deletions

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()
}
}