mirror of
https://github.com/vim/vim.git
synced 2025-07-24 10:45:12 -04:00
patch 8.0.1368: cannot drag status or separator of new terminal window
Problem: Cannot drag status line or vertical separator of new terminal window. (UncleBill) Solution: Adjust mouse row and column computation. (Yasuhiro Matsumoto, closes #2410)
This commit is contained in:
parent
461fe50fea
commit
ce6179c799
@ -1308,12 +1308,13 @@ send_keys_to_term(term_T *term, int c, int typed)
|
||||
case K_MOUSELEFT:
|
||||
case K_MOUSERIGHT:
|
||||
if (mouse_row < W_WINROW(curwin)
|
||||
|| mouse_row > (W_WINROW(curwin) + curwin->w_height)
|
||||
|| mouse_row >= (W_WINROW(curwin) + curwin->w_height)
|
||||
|| mouse_col < curwin->w_wincol
|
||||
|| mouse_col > W_ENDCOL(curwin)
|
||||
|| mouse_col >= W_ENDCOL(curwin)
|
||||
|| dragging_outside)
|
||||
{
|
||||
/* click or scroll outside the current window */
|
||||
/* click or scroll outside the current window or on status line
|
||||
* or vertical separator */
|
||||
if (typed)
|
||||
{
|
||||
stuffcharReadbuff(c);
|
||||
|
@ -771,6 +771,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1368,
|
||||
/**/
|
||||
1367,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user