---
st.c | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
diff --git a/st.c b/st.c
index 60243a7..816caf7 100644
--- a/st.c
+++ b/st.c
_AT_@ -1762,17 +1762,10 @@ tsetattr(int *attr, int l) {
void
tsetscroll(int t, int b) {
- int temp;
-
LIMIT(t, 0, term.row-1);
LIMIT(b, 0, term.row-1);
- if(t > b) {
- temp = t;
- t = b;
- b = temp;
- }
- term.top = t;
- term.bot = b;
+ term.top = MIN(t, b);
+ term.bot = MAX(t, b);
}
void
--
1.8.4
Received on Fri Apr 25 2014 - 16:24:33 CEST
This archive was generated by hypermail 2.3.0 : Fri Apr 25 2014 - 16:36:06 CEST