From 3940441b9bca4aa6bf295a248c9684a4090a0559 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 16 Aug 2019 21:48:24 -0400 Subject: Fix scrollUp OOB if scroll.bot is 0 --- term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) ); } -- cgit 1.4.1