diff options
| author | noname <noname@inventati.org> | 2014-04-20 17:26:39 +0400 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-23 20:38:04 +0200 |
| commit | 16ac85bf5422a7e925743f6134572d3ac1a25188 (patch) | |
| tree | 4e20ae6dff2fc3ecf218049338524625c75734e2 | |
| parent | fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8 (diff) | |
| download | st-16ac85bf5422a7e925743f6134572d3ac1a25188.tar.gz 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 | |||
| 1414 | tscrollup(int orig, int n) { | 1414 | tscrollup(int orig, int n) { |
| 1415 | int i; | 1415 | int i; |
| 1416 | Line temp; | 1416 | Line temp; |
| 1417 | |||
| 1417 | LIMIT(n, 0, term.bot-orig+1); | 1418 | LIMIT(n, 0, term.bot-orig+1); |
| 1418 | 1419 | ||
| 1419 | tclearregion(0, orig, term.col-1, orig+n-1); | 1420 | tclearregion(0, orig, term.col-1, orig+n-1); |
| 1420 | tsetdirt(orig+n, term.bot); | 1421 | tsetdirt(orig+n, term.bot); |
| 1421 | 1422 | ||
| 1422 | for(i = orig; i <= term.bot-n; i++) { | 1423 | for(i = orig; i <= term.bot-n; i++) { |
| 1423 | temp = term.line[i]; | 1424 | temp = term.line[i]; |
| 1424 | term.line[i] = term.line[i+n]; | 1425 | term.line[i] = term.line[i+n]; |
| 1425 | term.line[i+n] = temp; | 1426 | term.line[i+n] = temp; |
| 1426 | } | 1427 | } |
| 1427 | 1428 | ||
| 1428 | selscroll(orig, -n); | 1429 | selscroll(orig, -n); |
