summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-select-window.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:46:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-04-13 14:46:05 +0000
commit209c1b999f121d23cb4604659577998e9c854d0c (patch)
tree939d848fe4cad53c8bb66c06919d438695615d57 /usr.bin/tmux/cmd-select-window.c
parentb38a262a57ad0941a41ed3626664891772f6444e (diff)
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.c5
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;