diff options
-rw-r--r-- | src/parser.c | 3 | ||||
-rw-r--r-- | src/parser.l | 3 |
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); } |