summaryrefslogtreecommitdiffstats
path: root/cmd-select-pane.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-select-pane.c
parentddc4512d2e0eda6c705e002cb5dbf80719d709e1 (diff)
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'cmd-select-pane.c')
-rw-r--r--cmd-select-pane.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/cmd-select-pane.c b/cmd-select-pane.c
index 956d42a8..c0374fa7 100644
--- a/cmd-select-pane.c
+++ b/cmd-select-pane.c
@@ -24,7 +24,7 @@
* Select pane.
*/
-static enum cmd_retval cmd_select_pane_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_select_pane_exec(struct cmd *, struct cmdq_item *);
const struct cmd_entry cmd_select_pane_entry = {
.name = "select-pane",
@@ -53,19 +53,19 @@ const struct cmd_entry cmd_last_pane_entry = {
};
static enum cmd_retval
-cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
+cmd_select_pane_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct winlink *wl = cmdq->state.tflag.wl;
+ struct winlink *wl = item->state.tflag.wl;
struct window *w = wl->window;
- struct session *s = cmdq->state.tflag.s;
- struct window_pane *wp = cmdq->state.tflag.wp, *lastwp, *markedwp;
+ struct session *s = item->state.tflag.s;
+ struct window_pane *wp = item->state.tflag.wp, *lastwp, *markedwp;
const char *style;
if (self->entry == &cmd_last_pane_entry || args_has(args, 'l')) {
if (wl->window->last == NULL) {
- cmdq_error(cmdq, "no last pane");
+ cmdq_error(item, "no last pane");
return (CMD_RETURN_ERROR);
}
@@ -112,13 +112,13 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
style = args_get(args, 'P');
if (style_parse(&grid_default_cell, &wp->colgc,
style) == -1) {
- cmdq_error(cmdq, "bad style: %s", style);
+ cmdq_error(item, "bad style: %s", style);
return (CMD_RETURN_ERROR);
}
wp->flags |= PANE_REDRAW;
}
if (args_has(self->args, 'g'))
- cmdq_print(cmdq, "%s", style_tostring(&wp->colgc));
+ cmdq_print(item, "%s", style_tostring(&wp->colgc));
return (CMD_RETURN_NORMAL);
}
@@ -151,7 +151,7 @@ cmd_select_pane_exec(struct cmd *self, struct cmd_q *cmdq)
return (CMD_RETURN_NORMAL);
server_unzoom_window(wp->window);
if (!window_pane_visible(wp)) {
- cmdq_error(cmdq, "pane not visible");
+ cmdq_error(item, "pane not visible");
return (CMD_RETURN_ERROR);
}
window_redraw_active_switch(w, wp);