aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/normal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r--src/nvim/normal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c
index 0dc5f3175d..844e748681 100644
--- a/src/nvim/normal.c
+++ b/src/nvim/normal.c
@@ -3997,13 +3997,14 @@ static void nv_mousescroll(cmdarg_T *cap)
win_T *old_curwin = curwin;
if (mouse_row >= 0 && mouse_col >= 0) {
- int row, col;
+ int grid, row, col;
+ grid = mouse_grid;
row = mouse_row;
col = mouse_col;
// 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;
}