Skip to content

Commit ed4af75

Browse files
h-eastchar101
authored andcommitted
patch 9.1.1919: tabpanel: cannot handle mouse clicks in command line
Problem: tabpanel: cannot handle mouse clicks in command line (char101, after v9.1.1898) Solution: Update the condition that checks if the mouse pointer is on the command line (Hirohito Higashi) closes: #18771 Co-authored-by: Charles <[email protected]> Signed-off-by: Hirohito Higashi <[email protected]> Signed-off-by: Christian Brabandt <[email protected]>
1 parent 040a47a commit ed4af75

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/gui.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3260,6 +3260,8 @@ gui_send_mouse_event(
32603260
*/
32613261
if ((State == MODE_NORMAL || State == MODE_NORMAL_BUSY
32623262
|| (State & MODE_INSERT))
3263+
&& X_2_COL(x) >= firstwin->w_wincol
3264+
&& X_2_COL(x) < firstwin->w_wincol + topframe->fr_width
32633265
&& Y_2_ROW(y) >= topframe->fr_height + firstwin->w_winrow
32643266
&& button != MOUSE_DRAG
32653267
# ifdef FEAT_MOUSESHAPE
@@ -4941,7 +4943,12 @@ xy2win(int x, int y, mouse_find_T popup)
49414943
return NULL;
49424944
wp = mouse_find_win(&row, &col, popup);
49434945
if (wp == NULL)
4946+
{
4947+
#ifdef FEAT_MOUSESHAPE
4948+
update_mouseshape(-2);
4949+
#endif
49444950
return NULL;
4951+
}
49454952
#ifdef FEAT_MOUSESHAPE
49464953
if (State == MODE_HITRETURN || State == MODE_ASKMORE)
49474954
{

src/version.c

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

730730
static int included_patches[] =
731731
{ /* Add new patch number below this line */
732+
/**/
733+
1919,
732734
/**/
733735
1918,
734736
/**/

0 commit comments

Comments
 (0)