diff options
author | Ville Hakulinen <ville.hakulinen@gmail.com> | 2021-09-10 17:24:41 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 07:24:41 -0700 |
commit | 0dcfd0e8d101389fb6a33a7e887114ea0c062648 (patch) | |
tree | 23f79e65a0ba842d86c01dbb5b9ed2bd46829aee /src | |
parent | c58ee4ef7f7aa6623be71368df9a19b0f7f93251 (diff) | |
download | rneovim-0dcfd0e8d101389fb6a33a7e887114ea0c062648.tar.gz rneovim-0dcfd0e8d101389fb6a33a7e887114ea0c062648.tar.bz2 rneovim-0dcfd0e8d101389fb6a33a7e887114ea0c062648.zip |
fix(mouse.c): fix mouse drag positions on multigrid #12667
Currently, multigrid mouse drag positions are handled incorrectly if the
drag event is not in the top left grid. Fix this by not adjusting the
position of the event in jump_to_mouse.
related: #15091
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/mouse.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/nvim/mouse.c b/src/nvim/mouse.c index c599f4ea97..c4fa269851 100644 --- a/src/nvim/mouse.c +++ b/src/nvim/mouse.c @@ -228,10 +228,6 @@ retnomove: redraw_curbuf_later(INVERTED); // delete the inversion } - - row -= curwin->w_winrow; - col -= curwin->w_wincol; - // When clicking beyond the end of the window, scroll the screen. // Scroll by however many rows outside the window we are. if (row < 0) { |