diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-05-19 19:16:17 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-05-19 19:16:49 +0800 |
commit | f971536f461e2c54ac72c9e1c5bb399f8ce91395 (patch) | |
tree | f05b1aa9b35074409b738f76277a82168e994226 /src | |
parent | 0997884ae24fee68819217c1528523a5b72c1788 (diff) | |
download | rneovim-f971536f461e2c54ac72c9e1c5bb399f8ce91395.tar.gz rneovim-f971536f461e2c54ac72c9e1c5bb399f8ce91395.tar.bz2 rneovim-f971536f461e2c54ac72c9e1c5bb399f8ce91395.zip |
fix(mouse): fix mouse drag position with winbar or border in multigrid
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/mouse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index 862899e78b..8736c73080 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -273,6 +273,9 @@ retnomove: if (grid == 0) { row -= curwin->w_grid_alloc.comp_row + curwin->w_grid.row_offset; col -= curwin->w_grid_alloc.comp_col + curwin->w_grid.col_offset; + } else if (grid != DEFAULT_GRID_HANDLE) { + row -= curwin->w_grid.row_offset; + col -= curwin->w_grid.col_offset; } // When clicking beyond the end of the window, scroll the screen. |