aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/terminal.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-04 09:34:13 +0800
committerGitHub <noreply@github.com>2023-08-04 09:34:13 +0800
commit0a7fda6fa0067ee61fee60d123967c3f14431007 (patch)
tree098fce25aa220fafc4976e7fe8a8eb2a42697529 /src/nvim/terminal.c
parentc4f775fa57ae4d6fdf4be962edb0a1d0c82eaf72 (diff)
downloadrneovim-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.c4
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;
}