]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1919: tabpanel: cannot handle mouse clicks in command line v9.1.1919
authorHirohito Higashi <h.east.727@gmail.com>
Tue, 18 Nov 2025 20:10:14 +0000 (20:10 +0000)
committerChristian Brabandt <cb@256bit.org>
Tue, 18 Nov 2025 20:10:14 +0000 (20:10 +0000)
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 <char101@ui.ac.id>
Signed-off-by: Hirohito Higashi <h.east.727@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/gui.c
src/version.c

index 401f8ef837d3ddfcbe8a78c51e3ec9ddceaa5ee3..6ac16627737d13f53bbce58e3027268ab57e291e 100644 (file)
--- a/src/gui.c
+++ b/src/gui.c
@@ -3260,6 +3260,8 @@ button_set:
      */
     if ((State == MODE_NORMAL || State == MODE_NORMAL_BUSY
                                                      || (State & MODE_INSERT))
+           && X_2_COL(x) >= firstwin->w_wincol
+           && X_2_COL(x) < firstwin->w_wincol + topframe->fr_width
            && Y_2_ROW(y) >= topframe->fr_height + firstwin->w_winrow
            && button != MOUSE_DRAG
 # ifdef FEAT_MOUSESHAPE
@@ -4941,7 +4943,12 @@ xy2win(int x, int y, mouse_find_T popup)
        return NULL;
     wp = mouse_find_win(&row, &col, popup);
     if (wp == NULL)
+    {
+#ifdef FEAT_MOUSESHAPE
+       update_mouseshape(-2);
+#endif
        return NULL;
+    }
 #ifdef FEAT_MOUSESHAPE
     if (State == MODE_HITRETURN || State == MODE_ASKMORE)
     {
index ebb3f3974def4cafe744c2a3a6d0a3e187f33314..0607618c9ed895b8cfd2c2212eb4ffc22b06e378 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1919,
 /**/
     1918,
 /**/