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 | 3afdb4ff04b45a5e4209a56d5073341c9d506b38 (diff) | |
Do not set dirty flag twice in tscrollup and tscrolldown.
| -rw-r--r-- | st.c | 4 | 
1 files changed, 1 insertions, 3 deletions
| @@ -1398,9 +1398,8 @@ tscrolldown(int orig, int n) {  	LIMIT(n, 0, term.bot-orig+1); -	tclearregion(0, term.bot-n+1, term.col-1, term.bot);  	tsetdirt(orig, term.bot-n); -	tsetdirt(orig+n, term.bot); +	tclearregion(0, term.bot-n+1, term.col-1, term.bot);  	for(i = term.bot; i >= orig+n; i--) {  		temp = term.line[i]; @@ -1418,7 +1417,6 @@ tscrollup(int orig, int n) {  	LIMIT(n, 0, term.bot-orig+1);  	tclearregion(0, orig, term.col-1, orig+n-1); -	tsetdirt(orig, term.bot-n);  	tsetdirt(orig+n, term.bot);  	for(i = orig; i <= term.bot-n; i++) { |