[hackers] [st] Do not set dirty flag twice in tscrollup and tscrolldown. || noname

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

commit fe527aa508851d83f166b8f50ae4c2ed5f1e4ec8
Author: noname <noname_AT_inventati.org>
Date: Sun Apr 20 17:26:50 2014 +0400

    Do not set dirty flag twice in tscrollup and tscrolldown.

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

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