From a2be9c7218d7fb431191cd6146fba61bcd1e193e Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Tue, 1 Jan 2019 12:46:47 +0100 Subject: ui: multigrid mouse support --- src/nvim/edit.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/nvim/edit.c') 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; } -- cgit