summaryrefslogtreecommitdiffstats
path: root/cmd-find-window.c
diff options
context:
space:
mode:
authornicm <nicm>2016-10-16 19:04:05 +0000
committernicm <nicm>2016-10-16 19:04:05 +0000
commitb342bd0b462f69a9fc9a59d52bcd4bb34b57114f (patch)
tree2da71181e3b540b8b52422cb598682f1505c2e89 /cmd-find-window.c
parentddc4512d2e0eda6c705e002cb5dbf80719d709e1 (diff)
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'cmd-find-window.c')
-rw-r--r--cmd-find-window.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmd-find-window.c b/cmd-find-window.c
index 6ab6fbcf..129f6afe 100644
--- a/cmd-find-window.c
+++ b/cmd-find-window.c
@@ -33,9 +33,9 @@
"[#{window_width}x#{window_height}] " \
"(#{window_panes} panes) #{window_find_matches}"
-static enum cmd_retval cmd_find_window_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_find_window_exec(struct cmd *, struct cmdq_item *);
-static void cmd_find_window_callback(struct window_choose_data *);
+static void cmd_find_window_callback(struct window_choose_data *);
/* Flags for determining matching behavior. */
#define CMD_FIND_WINDOW_BY_TITLE 0x1
@@ -139,13 +139,13 @@ cmd_find_window_match(struct cmd_find_window_list *find_list,
}
static enum cmd_retval
-cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq)
+cmd_find_window_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct client *c = cmdq->state.c;
+ struct client *c = item->state.c;
struct window_choose_data *cdata;
- struct session *s = cmdq->state.tflag.s;
- struct winlink *wl = cmdq->state.tflag.wl, *wm;
+ struct session *s = item->state.tflag.s;
+ struct winlink *wl = item->state.tflag.wl, *wm;
struct cmd_find_window_list find_list;
struct cmd_find_window_data *find_data;
struct cmd_find_window_data *find_data1;
@@ -154,7 +154,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq)
u_int i, match_flags;
if (c == NULL) {
- cmdq_error(cmdq, "no client available");
+ cmdq_error(item, "no client available");
return (CMD_RETURN_ERROR);
}
@@ -172,7 +172,7 @@ cmd_find_window_exec(struct cmd *self, struct cmd_q *cmdq)
free(searchstr);
if (TAILQ_EMPTY(&find_list)) {
- cmdq_error(cmdq, "no windows matching: %s", str);
+ cmdq_error(item, "no windows matching: %s", str);
return (CMD_RETURN_ERROR);
}