summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-switch-client.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:04:26 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:04:26 +0000
commitb38a262a57ad0941a41ed3626664891772f6444e (patch)
tree6cda239574af188610e7a10cc59dc1545b001ee3 /usr.bin/tmux/cmd-switch-client.c
parentf332e1470fe1588871275b0439ceffa0f7bddf66 (diff)
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-switch-client.c')
-rw-r--r--usr.bin/tmux/cmd-switch-client.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-switch-client.c b/usr.bin/tmux/cmd-switch-client.c
index c45ad8d5f27..23d74af1143 100644
--- a/usr.bin/tmux/cmd-switch-client.c
+++ b/usr.bin/tmux/cmd-switch-client.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-switch-client.c,v 1.62 2020/04/13 10:59:58 nicm Exp $ */
+/* $OpenBSD: cmd-switch-client.c,v 1.63 2020/04/13 14:04:25 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -48,8 +48,8 @@ static enum cmd_retval
cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = cmd_get_args(self);
- struct cmdq_shared *shared = cmdq_get_shared(item);
- struct cmd_find_state *current = &shared->current;
+ struct cmdq_state *state = cmdq_get_state(item);
+ struct cmd_find_state *current = &state->current;
struct cmd_find_state target;
const char *tflag = args_get(args, 't');
enum cmd_find_type type;
@@ -137,7 +137,7 @@ cmd_switch_client_exec(struct cmd *self, struct cmdq_item *item)
if (c->session != NULL && c->session != s)
c->last_session = c->session;
c->session = s;
- if (~shared->flags & CMDQ_SHARED_REPEAT)
+ if (~state->flags & CMDQ_STATE_REPEAT)
server_client_set_key_table(c, NULL);
tty_update_client_offset(c);
status_timer_start(c);