summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2014-10-20 22:25:52 -0400
committerJesse Luehrs <doy@tozt.net>2014-10-20 22:25:52 -0400
commit71ddc90f1a0f62a22edf63334321d66e7f0467ad (patch)
treec6173e1c2f5f3dcbaa5cf86fef554a75d805b2c8
parentb300a2e43087400eaaf112de7e7cbf3d248a0dc5 (diff)
downloadlibvt100-71ddc90f1a0f62a22edf63334321d66e7f0467ad.tar.gz
libvt100-71ddc90f1a0f62a22edf63334321d66e7f0467ad.zip
move_to already handles the horizontal case properly
-rw-r--r--src/parser.c3
-rw-r--r--src/parser.l3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/parser.c b/src/parser.c
index 1ea486f..ea44ecb 100644
--- a/src/parser.c
+++ b/src/parser.c
@@ -2589,9 +2589,6 @@ static void vt100_parser_handle_cup(VT100Screen *vt, char *buf, size_t len)
if (params[0] > vt->grid->max.row) {
params[0] = vt->grid->max.row;
}
- if (params[1] > vt->grid->max.col) {
- params[1] = vt->grid->max.col;
- }
vt100_screen_move_to(vt, params[0] - 1, params[1] - 1);
}
diff --git a/src/parser.l b/src/parser.l
index c9f9545..d64df1c 100644
--- a/src/parser.l
+++ b/src/parser.l
@@ -428,9 +428,6 @@ static void vt100_parser_handle_cup(VT100Screen *vt, char *buf, size_t len)
if (params[0] > vt->grid->max.row) {
params[0] = vt->grid->max.row;
}
- if (params[1] > vt->grid->max.col) {
- params[1] = vt->grid->max.col;
- }
vt100_screen_move_to(vt, params[0] - 1, params[1] - 1);
}