summaryrefslogtreecommitdiffstats
path: root/cmd-copy-mode.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 13:42:35 +0000
committernicm <nicm>2020-04-13 13:42:35 +0000
commit77d5b0cc538138fd036dca0f9b2ba198a94c009d (patch)
treed45462362e56f236d72f3dec9a470ce97b6f3c4a /cmd-copy-mode.c
parent53d6b94e8aef09c0494ed8a53191063b605b3127 (diff)
Store a key event not a mouse event in the shared data.
Diffstat (limited to 'cmd-copy-mode.c')
-rw-r--r--cmd-copy-mode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-copy-mode.c b/cmd-copy-mode.c
index d5e132f9..2fa6ae2e 100644
--- a/cmd-copy-mode.c
+++ b/cmd-copy-mode.c
@@ -70,7 +70,7 @@ cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)
}
if (args_has(args, 'M')) {
- if ((wp = cmd_mouse_pane(&shared->mouse, &s, NULL)) == NULL)
+ if ((wp = cmd_mouse_pane(&shared->event.m, &s, NULL)) == NULL)
return (CMD_RETURN_NORMAL);
if (c == NULL || c->session != s)
return (CMD_RETURN_NORMAL);
@@ -87,7 +87,7 @@ cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)
swp = wp;
if (!window_pane_set_mode(wp, swp, &window_copy_mode, NULL, args)) {
if (args_has(args, 'M'))
- window_copy_start_drag(c, &shared->mouse);
+ window_copy_start_drag(c, &shared->event.m);
}
if (args_has(args, 'u'))
window_copy_pageup(wp, 0);