forked from Mirrors/bubbletea
Fix a bug where the top line wasn't being cleared on render
This commit is contained in:
parent
da9de0c42b
commit
f13ba01ff0
3
tea.go
3
tea.go
|
@ -188,9 +188,10 @@ func clearLine() {
|
||||||
|
|
||||||
// Clear a given number of lines
|
// Clear a given number of lines
|
||||||
func clearLines(n int) {
|
func clearLines(n int) {
|
||||||
|
clearLine()
|
||||||
for i := 0; i < n; i++ {
|
for i := 0; i < n; i++ {
|
||||||
clearLine()
|
|
||||||
cursorPrevLine(1)
|
cursorPrevLine(1)
|
||||||
|
clearLine()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue