]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1635: tabpanel: cannot drag inactive tabs v9.1.1635
authorNaruhiko Nishino <naru123456789@gmail.com>
Sat, 16 Aug 2025 13:48:50 +0000 (15:48 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 16 Aug 2025 14:09:02 +0000 (16:09 +0200)
Problem:  tabpanel: cannot drag inactive tabs (char101)
Solution: use end_visual_mode_keep_button() instead of end_visual_mode()
          (Naruhiko Nishino)

fixes: #17986
closes: #18016

Signed-off-by: Naruhiko Nishino <naru123456789@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/mouse.c
src/version.c

index 6d6265e5d72137a1b968107c48314a9ea0fd3988..b7696b8db26c69824e855add94f569867c0a4971 100644 (file)
@@ -516,7 +516,7 @@ do_mouse(
                if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
                {
                    // double click opens new page
-                   end_visual_mode();
+                   end_visual_mode_keep_button();
                    tabpage_new();
                    tabpage_move(c1 == 0 ? 9999 : c1 - 1);
                }
@@ -528,7 +528,7 @@ do_mouse(
 
                    // It's like clicking on the status line of a window.
                    if (curwin != old_curwin)
-                       end_visual_mode();
+                       end_visual_mode_keep_button();
                }
            }
            else
index f4f6a65607d08c58717eb9ef85d023d054870612..2a2d0598c1337faa1a034cf3c0e7a8a5d87c870b 100644 (file)
@@ -719,6 +719,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1635,
 /**/
     1634,
 /**/