summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-resize-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-13 13:42:35 +0000
committernicm <nicm@openbsd.org>2020-04-13 13:42:35 +0000
commitee160a9a98d6728ee3cf41bee2242a0c41c0caea (patch)
tree289959e4e3058e32d734c99878c1724916d47228 /usr.bin/tmux/cmd-resize-pane.c
parentMove the NOHOOKS flag into the shared flags. (diff)
downloadwireguard-openbsd-ee160a9a98d6728ee3cf41bee2242a0c41c0caea.tar.xz
wireguard-openbsd-ee160a9a98d6728ee3cf41bee2242a0c41c0caea.zip
Store a key event not a mouse event in the shared data.
Diffstat (limited to 'usr.bin/tmux/cmd-resize-pane.c')
-rw-r--r--usr.bin/tmux/cmd-resize-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-resize-pane.c b/usr.bin/tmux/cmd-resize-pane.c
index ca6a2a2f5b6..c0f1c8b9923 100644
--- a/usr.bin/tmux/cmd-resize-pane.c
+++ b/usr.bin/tmux/cmd-resize-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-resize-pane.c,v 1.43 2020/04/13 10:59:58 nicm Exp $ */
+/* $OpenBSD: cmd-resize-pane.c,v 1.44 2020/04/13 13:42:35 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -76,12 +76,12 @@ cmd_resize_pane_exec(struct cmd *self, struct cmdq_item *item)
}
if (args_has(args, 'M')) {
- if (cmd_mouse_window(&shared->mouse, &s) == NULL)
+ if (cmd_mouse_window(&shared->event.m, &s) == NULL)
return (CMD_RETURN_NORMAL);
if (c == NULL || c->session != s)
return (CMD_RETURN_NORMAL);
c->tty.mouse_drag_update = cmd_resize_pane_mouse_update;
- cmd_resize_pane_mouse_update(c, &shared->mouse);
+ cmd_resize_pane_mouse_update(c, &shared->event.m);
return (CMD_RETURN_NORMAL);
}