st

simple terminal

git clone https://9o.is/git/st.git

commit 703f6c6c842a7c5449dce3db6796f5d0c092ed7b
parent 429aec525baff2b83fe8f7e50698972b467c5481
Author: noname <noname@inventati.org>
Date:   Sun, 20 Apr 2014 17:26:50 +0400

Do not set dirty flag twice in tscrollup and tscrolldown.

Diffstat:
Mst.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/st.c b/st.c @@ -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++) {