diff options
author | 2020-04-13 14:46:04 +0000 | |
---|---|---|
committer | 2020-04-13 14:46:04 +0000 | |
commit | 823b6d6db0ffd5d96b269d4d060f7f6c4d950da6 (patch) | |
tree | 55f26292d7170ca3b6f606980e1b3e96e7c2bd8f /usr.bin/tmux/cmd-select-window.c | |
parent | Rename cmdq_shared to cmdq_state which will better reflect what it is (diff) | |
download | wireguard-openbsd-823b6d6db0ffd5d96b269d4d060f7f6c4d950da6.tar.xz wireguard-openbsd-823b6d6db0ffd5d96b269d4d060f7f6c4d950da6.zip |
Move cmdq_state into cmd-queue.c.
Diffstat (limited to 'usr.bin/tmux/cmd-select-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-select-window.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-select-window.c b/usr.bin/tmux/cmd-select-window.c index f05e7b7d6ca..ae1d6bc763a 100644 --- a/usr.bin/tmux/cmd-select-window.c +++ b/usr.bin/tmux/cmd-select-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-select-window.c,v 1.26 2020/04/13 14:04:25 nicm Exp $ */ +/* $OpenBSD: cmd-select-window.c,v 1.27 2020/04/13 14:46:04 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -85,8 +85,7 @@ static enum cmd_retval cmd_select_window_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = cmd_get_args(self); - struct cmdq_state *state = cmdq_get_state(item); - struct cmd_find_state *current = &state->current; + struct cmd_find_state *current = cmdq_get_current(item); struct cmd_find_state *target = cmdq_get_target(item); struct winlink *wl = target->wl; struct session *s = target->s; |