From 71ddc90f1a0f62a22edf63334321d66e7f0467ad Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 20 Oct 2014 22:25:52 -0400 Subject: move_to already handles the horizontal case properly --- src/parser.c | 3 --- src/parser.l | 3 --- 2 files changed, 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); } -- cgit v1.2.3