aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-01-20 13:36:20 +0100
committerGitHub <noreply@github.com>2019-01-20 13:36:20 +0100
commit62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd (patch)
tree2a0e717767dfe5cb793edf3feefdaf983a87942e /src/nvim/edit.c
parented6b44e1be2e0a8a1245ec3295040a092d3a05e3 (diff)
parenta2be9c7218d7fb431191cd6146fba61bcd1e193e (diff)
downloadrneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.tar.gz
rneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.tar.bz2
rneovim-62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd.zip
Merge pull request #9429 from bfredl/grid_mouse
API/UI: add nvim_input_mouse() including multigrid mouse support
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r--src/nvim/edit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c
index bb3c0ec196..90507cd0a5 100644
--- a/src/nvim/edit.c
+++ b/src/nvim/edit.c
@@ -7943,11 +7943,10 @@ static void ins_mousescroll(int dir)
pos_T tpos = curwin->w_cursor;
if (mouse_row >= 0 && mouse_col >= 0) {
- int row = mouse_row;
- int col = mouse_col;
+ int row = mouse_row, col = mouse_col, grid = mouse_grid;
// find the window at the pointer coordinates
- win_T *const wp = mouse_find_win(&row, &col);
+ win_T *wp = mouse_find_win(&grid, &row, &col);
if (wp == NULL) {
return;
}