summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-08-16 21:48:24 -0400
committerJune McEnroe <june@causal.agency>2019-08-16 21:48:24 -0400
commit3940441b9bca4aa6bf295a248c9684a4090a0559 (patch)
treeccb5cad28be7467ad1ee68d8d0600ea08f20480f
parentMake everything 0-based and exclusive (diff)
downloadstream-3940441b9bca4aa6bf295a248c9684a4090a0559.tar.gz
stream-3940441b9bca4aa6bf295a248c9684a4090a0559.zip
Fix scrollUp OOB if scroll.bot is 0
Diffstat (limited to '')
-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)
 	);
 }