diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-01-20 13:36:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-20 13:36:20 +0100 |
commit | 62254d2cc0d3cbd0e8aea75657ffb82e29ccfdfd (patch) | |
tree | 2a0e717767dfe5cb793edf3feefdaf983a87942e /src/nvim/eval.c | |
parent | ed6b44e1be2e0a8a1245ec3295040a092d3a05e3 (diff) | |
parent | a2be9c7218d7fb431191cd6146fba61bcd1e193e (diff) | |
download | rneovim-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/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 85b838e443..596eff5b79 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -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; } |