Skip to content

Commit

Permalink
patch 8.0.1368: cannot drag status or separator of new terminal window
Browse files Browse the repository at this point in the history
Problem:    Cannot drag status line or vertical separator of new terminal
            window. (UncleBill)
Solution:   Adjust mouse row and column computation. (Yasuhiro Matsumoto,
            closes #2410)
  • Loading branch information
brammool committed Dec 5, 2017
1 parent 461fe50 commit ce6179c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/terminal.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1308,12 +1308,13 @@ send_keys_to_term(term_T *term, int c, int typed)
case K_MOUSELEFT: case K_MOUSELEFT:
case K_MOUSERIGHT: case K_MOUSERIGHT:
if (mouse_row < W_WINROW(curwin) 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 < curwin->w_wincol
|| mouse_col > W_ENDCOL(curwin) || mouse_col >= W_ENDCOL(curwin)
|| dragging_outside) || 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) if (typed)
{ {
stuffcharReadbuff(c); stuffcharReadbuff(c);
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -771,6 +771,8 @@ static char *(features[]) =


static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1368,
/**/ /**/
1367, 1367,
/**/ /**/
Expand Down

0 comments on commit ce6179c

Please sign in to comment.