aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
Diffstat (limited to 'st.c')
-rw-r--r--st.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/st.c b/st.c
index d188b35..dffa84e 100644
--- a/st.c
+++ b/st.c
@@ -1398,9 +1398,8 @@ tscrolldown(int orig, int n) {
1398 1398
1399 LIMIT(n, 0, term.bot-orig+1); 1399 LIMIT(n, 0, term.bot-orig+1);
1400 1400
1401 tclearregion(0, term.bot-n+1, term.col-1, term.bot);
1402 tsetdirt(orig, term.bot-n); 1401 tsetdirt(orig, term.bot-n);
1403 tsetdirt(orig+n, term.bot); 1402 tclearregion(0, term.bot-n+1, term.col-1, term.bot);
1404 1403
1405 for(i = term.bot; i >= orig+n; i--) { 1404 for(i = term.bot; i >= orig+n; i--) {
1406 temp = term.line[i]; 1405 temp = term.line[i];
@@ -1418,7 +1417,6 @@ tscrollup(int orig, int n) {
1418 LIMIT(n, 0, term.bot-orig+1); 1417 LIMIT(n, 0, term.bot-orig+1);
1419 1418
1420 tclearregion(0, orig, term.col-1, orig+n-1); 1419 tclearregion(0, orig, term.col-1, orig+n-1);
1421 tsetdirt(orig, term.bot-n);
1422 tsetdirt(orig+n, term.bot); 1420 tsetdirt(orig+n, term.bot);
1423 1421
1424 for(i = orig; i <= term.bot-n; i++) { 1422 for(i = orig; i <= term.bot-n; i++) {