diff options
| author | Björn Linse <bjorn.linse@gmail.com> | 2019-07-19 20:15:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-19 20:15:03 +0200 |
| commit | d5f7099be23e217a1fe1f5443257f1b5d1eacfea (patch) | |
| tree | 3f6408beb26e7c34f95fa05c5d84b1ac7ad880c1 /src/nvim/os | |
| parent | 7e4fd045f943156882f5efa502998d2f670fe256 (diff) | |
| parent | aa28e070e9f953c26405d765addd9f780ede2c5a (diff) | |
| download | rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.tar.gz rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.tar.bz2 rneovim-d5f7099be23e217a1fe1f5443257f1b5d1eacfea.zip | |
Merge pull request #10541 from bfredl/conversion_getln
refactor: enable -Wconversion for ex_getln.c and use int for Rows/Columns
Diffstat (limited to 'src/nvim/os')
| -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; |