Browse Source

Do not set dirty flag twice in tscrollup and tscrolldown.

master
noname 10 years ago
committed by Roberto E. Vargas Caballero
parent
commit
fe527aa508
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      st.c

+ 1
- 3
st.c View File

@ -1398,9 +1398,8 @@ tscrolldown(int orig, int n) {
LIMIT(n, 0, term.bot-orig+1); LIMIT(n, 0, term.bot-orig+1);
tclearregion(0, term.bot-n+1, term.col-1, term.bot);
tsetdirt(orig, term.bot-n); tsetdirt(orig, term.bot-n);
tsetdirt(orig+n, term.bot);
tclearregion(0, term.bot-n+1, term.col-1, term.bot);
for(i = term.bot; i >= orig+n; i--) { for(i = term.bot; i >= orig+n; i--) {
temp = term.line[i]; temp = term.line[i];
@ -1418,7 +1417,6 @@ tscrollup(int orig, int n) {
LIMIT(n, 0, term.bot-orig+1); LIMIT(n, 0, term.bot-orig+1);
tclearregion(0, orig, term.col-1, orig+n-1); tclearregion(0, orig, term.col-1, orig+n-1);
tsetdirt(orig, term.bot-n);
tsetdirt(orig+n, term.bot); tsetdirt(orig+n, term.bot);
for(i = orig; i <= term.bot-n; i++) { for(i = orig; i <= term.bot-n; i++) {


Loading…
Cancel
Save