Skip to content

Commit ce6179c

Browse files
committed
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)
1 parent 461fe50 commit ce6179c

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/terminal.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1308,12 +1308,13 @@ send_keys_to_term(term_T *term, int c, int typed)
13081308
case K_MOUSELEFT:
13091309
case K_MOUSERIGHT:
13101310
if (mouse_row < W_WINROW(curwin)
1311-
|| mouse_row > (W_WINROW(curwin) + curwin->w_height)
1311+
|| mouse_row >= (W_WINROW(curwin) + curwin->w_height)
13121312
|| mouse_col < curwin->w_wincol
1313-
|| mouse_col > W_ENDCOL(curwin)
1313+
|| mouse_col >= W_ENDCOL(curwin)
13141314
|| dragging_outside)
13151315
{
1316-
/* click or scroll outside the current window */
1316+
/* click or scroll outside the current window or on status line
1317+
* or vertical separator */
13171318
if (typed)
13181319
{
13191320
stuffcharReadbuff(c);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1368,
774776
/**/
775777
1367,
776778
/**/

0 commit comments

Comments
 (0)