patch 9.1.1919: tabpanel: cannot handle mouse clicks in command line

Commit: 
https://github.com/vim/vim/commit/ed4af756c2f5f4f0a8092766ddff892cfade24b8
Author: Hirohito Higashi <[email protected]>
Date:   Tue Nov 18 20:10:14 2025 +0000

    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]>

diff --git a/src/gui.c b/src/gui.c
index 401f8ef83..6ac166277 100644
--- 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)
     {
diff --git a/src/version.c b/src/version.c
index ebb3f3974..0607618c9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1919,
 /**/
     1918,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1vLSKy-009w8G-KD%40256bit.org.

Raspunde prin e-mail lui