summaryrefslogtreecommitdiffstats
path: root/cmd-resize-pane.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-13 14:04:25 +0000
committernicm <nicm>2020-04-13 14:04:25 +0000
commit9a65102bfc2ed5d1e1f41e47451b8296c84f133d (patch)
tree5f96c61a04d696402b41df1087b5fd6cc50f29b2 /cmd-resize-pane.c
parent77d5b0cc538138fd036dca0f9b2ba198a94c009d (diff)
Rename cmdq_shared to cmdq_state which will better reflect what it is
(going to be) used for.
Diffstat (limited to 'cmd-resize-pane.c')
-rw-r--r--cmd-resize-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-resize-pane.c b/cmd-resize-pane.c
index cd68fd4a..e8c2a5bc 100644
--- a/cmd-resize-pane.c
+++ b/cmd-resize-pane.c
@@ -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);
}