patch 9.1.1635: tabpanel: cannot drag inactive tabs

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>
This commit is contained in:
Naruhiko Nishino
2025-08-16 15:48:50 +02:00
committed by Christian Brabandt
parent 126bc4690f
commit 62f5be6ea6
2 changed files with 4 additions and 2 deletions

View 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

View File

@ -719,6 +719,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1635,
/**/
1634,
/**/