Style fixes in tscrollup.
authornoname <noname@inventati.org>
Sun, 20 Apr 2014 13:26:39 +0000 (17:26 +0400)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Wed, 23 Apr 2014 18:38:04 +0000 (20:38 +0200)
st.c

diff --git a/st.c b/st.c
index dffa84e..60243a7 100644 (file)
--- a/st.c
+++ b/st.c
@@ -1414,15 +1414,16 @@ void
 tscrollup(int orig, int n) {
        int i;
        Line temp;
+
        LIMIT(n, 0, term.bot-orig+1);
 
        tclearregion(0, orig, term.col-1, orig+n-1);
        tsetdirt(orig+n, term.bot);
 
        for(i = orig; i <= term.bot-n; i++) {
-                temp = term.line[i];
-                term.line[i] = term.line[i+n];
-                term.line[i+n] = temp;
+               temp = term.line[i];
+               term.line[i] = term.line[i+n];
+               term.line[i+n] = temp;
        }
 
        selscroll(orig, -n);