mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 13:15:09 -07:00
fix(terminal): include modifiers when forwarding mouse
(cherry picked from commit d7da156929
)
This commit is contained in:
parent
ff689ed1a9
commit
90b1a3250a
@ -1443,7 +1443,9 @@ static bool send_mouse_event(Terminal *term, int c)
|
||||
return false;
|
||||
}
|
||||
|
||||
mouse_action(term, button, row, col - offset, pressed, 0);
|
||||
VTermModifier mod = VTERM_MOD_NONE;
|
||||
convert_modifiers(c, &mod);
|
||||
mouse_action(term, button, row, col - offset, pressed, mod);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -463,6 +463,10 @@ describe('terminal input', function()
|
||||
'<S-Up>', '<C-Up>', '<Up>', '<S-Down>', '<C-Down>', '<Down>',
|
||||
'<S-Left>', '<C-Left>', '<Left>', '<S-Right>', '<C-Right>', '<Right>',
|
||||
'<S-Home>', '<C-Home>', '<Home>', '<S-End>', '<C-End>', '<End>',
|
||||
'<C-LeftMouse>', '<C-LeftRelease>', '<2-LeftMouse>', '<2-LeftRelease>',
|
||||
'<S-RightMouse>', '<S-RightRelease>', '<2-RightMouse>', '<2-RightRelease>',
|
||||
'<M-MiddleMouse>', '<M-MiddleRelease>', '<2-MiddleMouse>', '<2-MiddleRelease>',
|
||||
'<S-ScrollWheelUp>', '<S-ScrollWheelDown>', '<ScrollWheelUp>', '<ScrollWheelDown>',
|
||||
}) do
|
||||
feed('<CR><C-V>' .. key)
|
||||
retry(nil, nil, function() eq(key, meths.get_current_line()) end)
|
||||
|
Loading…
Reference in New Issue
Block a user