mirror of
https://github.com/neovim/neovim.git
synced 2025-09-12 22:38:16 +00:00
ui: multigrid mouse support
This commit is contained in:
@@ -9521,6 +9521,7 @@ static void f_getchar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (is_mouse_key(n)) {
|
||||
int row = mouse_row;
|
||||
int col = mouse_col;
|
||||
int grid = mouse_grid;
|
||||
win_T *win;
|
||||
linenr_T lnum;
|
||||
win_T *wp;
|
||||
@@ -9529,7 +9530,7 @@ static void f_getchar(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (row >= 0 && col >= 0) {
|
||||
/* Find the window at the mouse coordinates and compute the
|
||||
* text position. */
|
||||
win = mouse_find_win(&row, &col);
|
||||
win = mouse_find_win(&grid, &row, &col);
|
||||
if (win == NULL) {
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user