Xinqi Bao's Git
projects
/
st.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (parent:
3afdb4f
)
Do not set dirty flag twice in tscrollup and tscrolldown.
author
noname <
[email protected]
>
Sun, 20 Apr 2014 13:26:50 +0000
(17:26 +0400)
committer
Roberto E. Vargas Caballero <
[email protected]
>
Wed, 23 Apr 2014 18:37:59 +0000
(20:37 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
d188b35
..
dffa84e
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-1398,9
+1398,8
@@
tscrolldown(int orig, int n) {
LIMIT(n, 0, term.bot-orig+1);
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, term.bot-n);
- t
setdirt(orig+n
, term.bot);
+ t
clearregion(0, term.bot-n+1, term.col-1
, term.bot);
for(i = term.bot; i >= orig+n; i--) {
temp = term.line[i];
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);
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++) {
tsetdirt(orig+n, term.bot);
for(i = orig; i <= term.bot-n; i++) {