Style fixes in tscrollup.

dev
noname 2014-04-20 17:26:39 +04:00 committed by Roberto E. Vargas Caballero
parent fe527aa508
commit 16ac85bf54
1 changed files with 4 additions and 3 deletions

7
st.c
View File

@ -1414,15 +1414,16 @@ void
tscrollup(int orig, int n) { tscrollup(int orig, int n) {
int i; int i;
Line temp; Line temp;
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+n, term.bot); tsetdirt(orig+n, term.bot);
for(i = orig; i <= term.bot-n; i++) { for(i = orig; i <= term.bot-n; i++) {
temp = term.line[i]; temp = term.line[i];
term.line[i] = term.line[i+n]; term.line[i] = term.line[i+n];
term.line[i+n] = temp; term.line[i+n] = temp;
} }
selscroll(orig, -n); selscroll(orig, -n);