diff options
Diffstat (limited to 'st.c')
| -rw-r--r-- | st.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -1571,11 +1571,9 @@ tmoveto(int x, int y) { | |||
| 1571 | miny = 0; | 1571 | miny = 0; |
| 1572 | maxy = term.row - 1; | 1572 | maxy = term.row - 1; |
| 1573 | } | 1573 | } |
| 1574 | LIMIT(x, 0, term.col-1); | ||
| 1575 | LIMIT(y, miny, maxy); | ||
| 1576 | term.c.state &= ~CURSOR_WRAPNEXT; | 1574 | term.c.state &= ~CURSOR_WRAPNEXT; |
| 1577 | term.c.x = x; | 1575 | term.c.x = LIMIT(x, 0, term.col-1); |
| 1578 | term.c.y = y; | 1576 | term.c.y = LIMIT(y, miny, maxy); |
| 1579 | } | 1577 | } |
| 1580 | 1578 | ||
| 1581 | void | 1579 | void |
