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:
committed by
Christian Brabandt
parent
126bc4690f
commit
62f5be6ea6
@ -516,7 +516,7 @@ do_mouse(
|
|||||||
if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
|
if ((mod_mask & MOD_MASK_MULTI_CLICK) == MOD_MASK_2CLICK)
|
||||||
{
|
{
|
||||||
// double click opens new page
|
// double click opens new page
|
||||||
end_visual_mode();
|
end_visual_mode_keep_button();
|
||||||
tabpage_new();
|
tabpage_new();
|
||||||
tabpage_move(c1 == 0 ? 9999 : c1 - 1);
|
tabpage_move(c1 == 0 ? 9999 : c1 - 1);
|
||||||
}
|
}
|
||||||
@ -528,7 +528,7 @@ do_mouse(
|
|||||||
|
|
||||||
// It's like clicking on the status line of a window.
|
// It's like clicking on the status line of a window.
|
||||||
if (curwin != old_curwin)
|
if (curwin != old_curwin)
|
||||||
end_visual_mode();
|
end_visual_mode_keep_button();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@ -719,6 +719,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1635,
|
||||||
/**/
|
/**/
|
||||||
1634,
|
1634,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user