diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-19 09:12:58 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-07-19 15:57:19 +0200 |
commit | aa28e070e9f953c26405d765addd9f780ede2c5a (patch) | |
tree | 0f209d5c07812b2617a2ead59ae58cf564d62c35 /src/nvim/os/input.c | |
parent | 75928101f84526d92f3a38b175cdd71820526e49 (diff) | |
download | rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.gz rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.tar.bz2 rneovim-aa28e070e9f953c26405d765addd9f780ede2c5a.zip |
refactor: use int for Columns and Rows
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |