diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 19:04:06 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2016-10-16 19:04:06 +0000 |
commit | 3f0dad54b9b7fbe7e951cb592fa147fbdc7bdde6 (patch) | |
tree | a685fa2872c014d3bc9be168c7338d3974fcab39 /usr.bin/tmux/cmd-swap-window.c | |
parent | f71299d662dee69becff6a71ecf049a77fbacd95 (diff) |
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'usr.bin/tmux/cmd-swap-window.c')
-rw-r--r-- | usr.bin/tmux/cmd-swap-window.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/tmux/cmd-swap-window.c b/usr.bin/tmux/cmd-swap-window.c index adc94b07aa9..cf6ee4ca3a4 100644 --- a/usr.bin/tmux/cmd-swap-window.c +++ b/usr.bin/tmux/cmd-swap-window.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-swap-window.c,v 1.19 2016/10/13 22:48:51 nicm Exp $ */ +/* $OpenBSD: cmd-swap-window.c,v 1.20 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -26,7 +26,7 @@ * Swap one window with another. */ -static enum cmd_retval cmd_swap_window_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_swap_window_exec(struct cmd *, struct cmdq_item *); const struct cmd_entry cmd_swap_window_entry = { .name = "swap-window", @@ -43,24 +43,24 @@ const struct cmd_entry cmd_swap_window_entry = { }; static enum cmd_retval -cmd_swap_window_exec(struct cmd *self, struct cmd_q *cmdq) +cmd_swap_window_exec(struct cmd *self, struct cmdq_item *item) { struct session *src, *dst; struct session_group *sg_src, *sg_dst; struct winlink *wl_src, *wl_dst; struct window *w; - wl_src = cmdq->state.sflag.wl; - src = cmdq->state.sflag.s; + wl_src = item->state.sflag.wl; + src = item->state.sflag.s; sg_src = session_group_find(src); - wl_dst = cmdq->state.tflag.wl; - dst = cmdq->state.tflag.s; + wl_dst = item->state.tflag.wl; + dst = item->state.tflag.s; sg_dst = session_group_find(dst); if (src != dst && sg_src != NULL && sg_dst != NULL && sg_src == sg_dst) { - cmdq_error(cmdq, "can't move window, sessions are grouped"); + cmdq_error(item, "can't move window, sessions are grouped"); return (CMD_RETURN_ERROR); } |