[hackers] [st] Style fixes in tscrollup. || noname

From: <git_AT_suckless.org>
Date: Wed, 23 Apr 2014 20:39:28 +0200

commit 16ac85bf5422a7e925743f6134572d3ac1a25188
Author: noname <noname_AT_inventati.org>
Date: Sun Apr 20 17:26:39 2014 +0400

    Style fixes in tscrollup.

diff --git a/st.c b/st.c
index dffa84e..60243a7 100644
--- a/st.c
+++ b/st.c
_AT_@ -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);
Received on Wed Apr 23 2014 - 20:39:28 CEST

This archive was generated by hypermail 2.3.0 : Wed Apr 23 2014 - 20:48:13 CEST