mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 9.0.0136: after CTRL-Left-mouse click a mouse scroll also has CTRL
Problem: After CTRL-Left-mouse click a mouse scroll also has CTRL. Solution: Reset orig_mouse_code also for wheel events. (closes #10840)
This commit is contained in:
@@ -2788,7 +2788,9 @@ check_termcode_mouse(
|
|||||||
is_drag = TRUE;
|
is_drag = TRUE;
|
||||||
current_button = held_button;
|
current_button = held_button;
|
||||||
}
|
}
|
||||||
else if (wheel_code == 0)
|
else
|
||||||
|
{
|
||||||
|
if (wheel_code == 0)
|
||||||
{
|
{
|
||||||
# ifdef CHECK_DOUBLE_CLICK
|
# ifdef CHECK_DOUBLE_CLICK
|
||||||
# ifdef FEAT_MOUSE_GPM
|
# ifdef FEAT_MOUSE_GPM
|
||||||
@@ -2849,6 +2851,7 @@ check_termcode_mouse(
|
|||||||
orig_num_clicks = NUM_MOUSE_CLICKS(mouse_code);
|
orig_num_clicks = NUM_MOUSE_CLICKS(mouse_code);
|
||||||
# endif
|
# endif
|
||||||
is_click = TRUE;
|
is_click = TRUE;
|
||||||
|
}
|
||||||
orig_mouse_code = mouse_code;
|
orig_mouse_code = mouse_code;
|
||||||
}
|
}
|
||||||
if (!is_drag)
|
if (!is_drag)
|
||||||
|
@@ -735,6 +735,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 */
|
||||||
|
/**/
|
||||||
|
136,
|
||||||
/**/
|
/**/
|
||||||
135,
|
135,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user