From aa28e070e9f953c26405d765addd9f780ede2c5a Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Fri, 19 Jul 2019 09:12:58 +0200 Subject: refactor: use int for Columns and Rows --- src/nvim/os/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/os/input.c') diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 5d43dff5c1..95e9e8e414 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -321,10 +321,10 @@ static unsigned int handle_mouse_event(char **ptr, uint8_t *buf, // Make sure the mouse position is valid. Some terminals may // return weird values. if (col >= Columns) { - col = (int)Columns - 1; + col = Columns - 1; } if (row >= Rows) { - row = (int)Rows - 1; + row = Rows - 1; } mouse_grid = 0; mouse_row = row; -- cgit