diff options
author | June McEnroe <june@causal.agency> | 2019-08-16 21:48:24 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-08-16 21:48:24 -0400 |
commit | 3940441b9bca4aa6bf295a248c9684a4090a0559 (patch) | |
tree | ccb5cad28be7467ad1ee68d8d0600ea08f20480f | |
parent | Make everything 0-based and exclusive (diff) | |
download | stream-3940441b9bca4aa6bf295a248c9684a4090a0559.tar.gz stream-3940441b9bca4aa6bf295a248c9684a4090a0559.zip |
Fix scrollUp OOB if scroll.bot is 0
Diffstat (limited to '')
-rw-r--r-- | term.c | 2 |
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) ); } |