From f13ba01ff0c2a90e4d1d274359cd5f746d4dca63 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Wed, 15 Jan 2020 23:28:49 -0500 Subject: [PATCH] Fix a bug where the top line wasn't being cleared on render --- tea.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tea.go b/tea.go index 7f56ac3..4ac3baf 100644 --- a/tea.go +++ b/tea.go @@ -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() } }