[dev] [PATCH] [st 2/3] Do not set dirty flag twice in tscrollup and tscrolldown.

From: noname <noname_AT_inventati.org>
Date: Sun, 20 Apr 2014 17:26:50 +0400

---
 st.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/st.c b/st.c
index e625237..fecf1c2 100644
--- a/st.c
+++ b/st.c
_AT_@ -1400,9 +1400,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_@ -1420,7 +1419,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++) {
-- 
1.8.4
Received on Sun Apr 20 2014 - 15:26:50 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 20 2014 - 15:36:13 CEST