diff options
| author | noname <noname@inventati.org> | 2014-04-20 17:26:50 +0400 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-23 20:37:59 +0200 |
| commit | fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8 (patch) | |
| tree | 3cc3df603bcd2ba428c3ed9e52ded9b2321dda8e | |
| parent | Use tsetdirt in tscrollup and tscrolldown. (diff) | |
| download | st-fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8.tar.gz st-fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8.zip | |
Do not set dirty flag twice in tscrollup and tscrolldown.
Diffstat (limited to '')
| -rw-r--r-- | st.c | 4 |
1 files changed, 1 insertions, 3 deletions
| @@ -1398,9 +1398,8 @@ tscrolldown(int orig, int n) { | |||
| 1398 | 1398 | ||
| 1399 | LIMIT(n, 0, term.bot-orig+1); | 1399 | LIMIT(n, 0, term.bot-orig+1); |
| 1400 | 1400 | ||
| 1401 | tclearregion(0, term.bot-n+1, term.col-1, term.bot); | ||
| 1402 | tsetdirt(orig, term.bot-n); | 1401 | tsetdirt(orig, term.bot-n); |
| 1403 | tsetdirt(orig+n, term.bot); | 1402 | tclearregion(0, term.bot-n+1, term.col-1, term.bot); |
| 1404 | 1403 | ||
| 1405 | for(i = term.bot; i >= orig+n; i--) { | 1404 | for(i = term.bot; i >= orig+n; i--) { |
| 1406 | temp = term.line[i]; | 1405 | temp = term.line[i]; |
| @@ -1418,7 +1417,6 @@ tscrollup(int orig, int n) { | |||
| 1418 | LIMIT(n, 0, term.bot-orig+1); | 1417 | LIMIT(n, 0, term.bot-orig+1); |
| 1419 | 1418 | ||
| 1420 | tclearregion(0, orig, term.col-1, orig+n-1); | 1419 | tclearregion(0, orig, term.col-1, orig+n-1); |
| 1421 | tsetdirt(orig, term.bot-n); | ||
| 1422 | tsetdirt(orig+n, term.bot); | 1420 | tsetdirt(orig+n, term.bot); |
| 1423 | 1421 | ||
| 1424 | for(i = orig; i <= term.bot-n; i++) { | 1422 | for(i = orig; i <= term.bot-n; i++) { |
