Introduction
Introduction Statistics Contact Development Disclaimer Help
tSimplify tmoveto. - st - [fork] customized build of st, the simple terminal
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit b0310fba5de0c519eae0c8a2817ccc7bfcdd5222
parent 9d1495f9eeee993a480c7ab1755803d081d794e6
Author: [email protected] <[email protected]>
Date: Mon, 13 Apr 2015 14:03:51 +0200
Simplify tmoveto.
LIMIT returns value. This fact is already used in x2col and y2row.
Diffstat:
M st.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -1571,11 +1571,9 @@ tmoveto(int x, int y) {
miny = 0;
maxy = term.row - 1;
}
- LIMIT(x, 0, term.col-1);
- LIMIT(y, miny, maxy);
term.c.state &= ~CURSOR_WRAPNEXT;
- term.c.x = x;
- term.c.y = y;
+ term.c.x = LIMIT(x, 0, term.col-1);
+ term.c.y = LIMIT(y, miny, maxy);
}
void
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.