diff options
author | 2020-04-13 14:04:25 +0000 | |
---|---|---|
committer | 2020-04-13 14:04:25 +0000 | |
commit | 054f42ac3c11f9c74e2a6c1c031bfd2efb8c013c (patch) | |
tree | bcde0dda957246e42692f39e6356fc8babbeb376 /usr.bin/tmux/cmd-resize-pane.c | |
parent | Store a key event not a mouse event in the shared data. (diff) | |
download | wireguard-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-resize-pane.c')
-rw-r--r-- | usr.bin/tmux/cmd-resize-pane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-resize-pane.c b/usr.bin/tmux/cmd-resize-pane.c index c0f1c8b9923..0d8c12ad0f1 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.44 2020/04/13 13:42:35 nicm Exp $ */ +/* $OpenBSD: cmd-resize-pane.c,v 1.45 2020/04/13 14:04:25 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -50,7 +50,7 @@ static enum cmd_retval cmd_resize_pane_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 *target = cmdq_get_target(item); struct window_pane *wp = target->wp; struct winlink *wl = target->wl; @@ -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->event.m, &s) == NULL) + if (cmd_mouse_window(&state->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->event.m); + cmd_resize_pane_mouse_update(c, &state->event.m); return (CMD_RETURN_NORMAL); } |