summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-copy-mode.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-13 14:04:25 +0000
committernicm <nicm@openbsd.org>2020-04-13 14:04:25 +0000
commit054f42ac3c11f9c74e2a6c1c031bfd2efb8c013c (patch)
treebcde0dda957246e42692f39e6356fc8babbeb376 /usr.bin/tmux/cmd-copy-mode.c
parentStore a key event not a mouse event in the shared data. (diff)
downloadwireguard-openbsd-054f42ac3c11f9c74e2a6c1c031bfd2efb8c013c.tar.xz
wireguard-openbsd-054f42ac3c11f9c74e2a6c1c031bfd2efb8c013c.zip
Rename cmdq_shared to cmdq_state which will better reflect what it is
(going to be) used for.
Diffstat (limited to 'usr.bin/tmux/cmd-copy-mode.c')
-rw-r--r--usr.bin/tmux/cmd-copy-mode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-copy-mode.c b/usr.bin/tmux/cmd-copy-mode.c
index 39280838ca1..1af491c58ad 100644
--- a/usr.bin/tmux/cmd-copy-mode.c
+++ b/usr.bin/tmux/cmd-copy-mode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-copy-mode.c,v 1.44 2020/04/13 13:42:35 nicm Exp $ */
+/* $OpenBSD: cmd-copy-mode.c,v 1.45 2020/04/13 14:04:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -57,7 +57,7 @@ static enum cmd_retval
cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = cmd_get_args(self);
- struct cmdq_shared *shared = cmdq_get_shared(item);
+ struct cmdq_state *state = cmdq_get_state(item);
struct cmd_find_state *source = cmdq_get_source(item);
struct cmd_find_state *target = cmdq_get_target(item);
struct client *c = cmdq_get_client(item);
@@ -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->event.m, &s, NULL)) == NULL)
+ if ((wp = cmd_mouse_pane(&state->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->event.m);
+ window_copy_start_drag(c, &state->event.m);
}
if (args_has(args, 'u'))
window_copy_pageup(wp, 0);