quickly bound mouse events to terminal size

This commit is contained in:
K. Lange 2018-05-14 21:23:59 +09:00
parent 772542a271
commit d805ac8684

View File

@ -1619,6 +1619,9 @@ void * handle_incoming(void) {
new_x /= char_width;
new_y /= char_height;
if (new_x < 0 || new_y < 0) break;
if (new_x > term_width || new_y > term_height) break;
/* Map Cursor Action */
if (ansi_state->mouse_on) {