diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 5 |
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; } |