diff options
author | noname | 2014-04-20 17:26:39 +0400 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2014-04-23 20:38:04 +0200 |
commit | 16ac85bf5422a7e925743f6134572d3ac1a25188 (patch) | |
tree | 4e20ae6dff2fc3ecf218049338524625c75734e2 | |
parent | fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8 (diff) | |
download | st-16ac85bf5422a7e925743f6134572d3ac1a25188.tar.gz st-16ac85bf5422a7e925743f6134572d3ac1a25188.tar.xz st-16ac85bf5422a7e925743f6134572d3ac1a25188.zip |
Style fixes in tscrollup.
-rw-r--r-- | st.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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); |