summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--term.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/term.c b/term.c
index 54dcef0..52cc859 100644
--- a/term.c
+++ b/term.c
@@ -66,7 +66,7 @@ static void scrollUp(struct Term *term, uint top, uint n) {
 	erase(
 		term,
 		cell(term, term->scroll.bot - n, 0),
-		cell(term, term->scroll.bot - 1, term->cols)
+		cell(term, term->scroll.bot, 0)
 	);
 }