Mercurial > vim
diff src/terminal.c @ 12513:3ca08bf99396 v8.0.1135
patch 8.0.1135: W_WINCOL() is always the same
commit https://github.com/vim/vim/commit/53f8174eaeb93b381cf74c58863f8fe82748a22a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 22 14:35:51 2017 +0200
patch 8.0.1135: W_WINCOL() is always the same
Problem: W_WINCOL() is always the same.
Solution: Expand the macro.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 22 Sep 2017 14:45:06 +0200 |
parents | 1fd4594eb74a |
children | fcb11cfca8b3 |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -730,7 +730,7 @@ term_send_mouse(VTerm *vterm, int button VTermModifier mod = VTERM_MOD_NONE; vterm_mouse_move(vterm, mouse_row - W_WINROW(curwin), - mouse_col - W_WINCOL(curwin), mod); + mouse_col - curwin->w_wincol, mod); vterm_mouse_button(vterm, button, pressed, mod); return TRUE; } @@ -1308,7 +1308,7 @@ send_keys_to_term(term_T *term, int c, i case K_MOUSERIGHT: if (mouse_row < W_WINROW(curwin) || mouse_row >= (W_WINROW(curwin) + curwin->w_height) - || mouse_col < W_WINCOL(curwin) + || mouse_col < curwin->w_wincol || mouse_col >= W_ENDCOL(curwin) || dragging_outside) {