---
st.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c
index fecf1c2..185c615 100644
--- a/st.c
+++ b/st.c
_AT_@ -1416,15 +1416,16 @@ void
tscrollup(int orig, int n) {
int i;
Line temp;
+
LIMIT(n, 0, term.bot-orig+1);
tclearregion(0, orig, term.col-1, orig+n-1);
tsetdirt(orig+n, term.bot);
for(i = orig; i <= term.bot-n; i++) {
- temp = term.line[i];
- term.line[i] = term.line[i+n];
- term.line[i+n] = temp;
+ temp = term.line[i];
+ term.line[i] = term.line[i+n];
+ term.line[i+n] = temp;
}
selscroll(orig, -n);
--
1.8.4
Received on Sun Apr 20 2014 - 15:26:39 CEST
This archive was generated by hypermail 2.3.0 : Sun Apr 20 2014 - 15:36:10 CEST