diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-08-04 09:34:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-04 09:34:13 +0800 |
commit | 0a7fda6fa0067ee61fee60d123967c3f14431007 (patch) | |
tree | 098fce25aa220fafc4976e7fe8a8eb2a42697529 /src/nvim/terminal.c | |
parent | c4f775fa57ae4d6fdf4be962edb0a1d0c82eaf72 (diff) | |
download | rneovim-0a7fda6fa0067ee61fee60d123967c3f14431007.tar.gz rneovim-0a7fda6fa0067ee61fee60d123967c3f14431007.tar.bz2 rneovim-0a7fda6fa0067ee61fee60d123967c3f14431007.zip |
fix(terminal): include modifiers when forwarding mouse (#24549)
Diffstat (limited to 'src/nvim/terminal.c')
-rw-r--r-- | src/nvim/terminal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/nvim/terminal.c b/src/nvim/terminal.c index 56f364bf0a..3315936b6a 100644 --- a/src/nvim/terminal.c +++ b/src/nvim/terminal.c @@ -1444,7 +1444,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; } |