summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-copy-mode.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2016-10-16 19:04:05 +0000
committernicm <nicm@openbsd.org>2016-10-16 19:04:05 +0000
commit68e0a7f271bc1c08e58a23a65844d346c6665089 (patch)
tree315962d2740c0dca5e710bb5c9db0ac9878f55ba /usr.bin/tmux/cmd-copy-mode.c
parentReplace fs/msdosfs/{msdosfs_conv.c,direntry.h} with stripped-down (diff)
downloadwireguard-openbsd-68e0a7f271bc1c08e58a23a65844d346c6665089.tar.xz
wireguard-openbsd-68e0a7f271bc1c08e58a23a65844d346c6665089.zip
Mass rename struct cmd_q to struct cmdq_item and related.
Diffstat (limited to 'usr.bin/tmux/cmd-copy-mode.c')
-rw-r--r--usr.bin/tmux/cmd-copy-mode.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/tmux/cmd-copy-mode.c b/usr.bin/tmux/cmd-copy-mode.c
index 6eb470f286d..5a85d7bb293 100644
--- a/usr.bin/tmux/cmd-copy-mode.c
+++ b/usr.bin/tmux/cmd-copy-mode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-copy-mode.c,v 1.30 2016/10/16 17:55:14 nicm Exp $ */
+/* $OpenBSD: cmd-copy-mode.c,v 1.31 2016/10/16 19:04:05 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -24,7 +24,7 @@
* Enter copy or clock mode.
*/
-static enum cmd_retval cmd_copy_mode_exec(struct cmd *, struct cmd_q *);
+static enum cmd_retval cmd_copy_mode_exec(struct cmd *, struct cmdq_item *);
const struct cmd_entry cmd_copy_mode_entry = {
.name = "copy-mode",
@@ -53,15 +53,15 @@ const struct cmd_entry cmd_clock_mode_entry = {
};
static enum cmd_retval
-cmd_copy_mode_exec(struct cmd *self, struct cmd_q *cmdq)
+cmd_copy_mode_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
- struct client *c = cmdq->client;
+ struct client *c = item->client;
struct session *s;
- struct window_pane *wp = cmdq->state.tflag.wp;
+ struct window_pane *wp = item->state.tflag.wp;
if (args_has(args, 'M')) {
- if ((wp = cmd_mouse_pane(&cmdq->mouse, &s, NULL)) == NULL)
+ if ((wp = cmd_mouse_pane(&item->mouse, &s, NULL)) == NULL)
return (CMD_RETURN_NORMAL);
if (c == NULL || c->session != s)
return (CMD_RETURN_NORMAL);
@@ -80,7 +80,7 @@ cmd_copy_mode_exec(struct cmd *self, struct cmd_q *cmdq)
if (args_has(args, 'M')) {
if (wp->mode != NULL && wp->mode != &window_copy_mode)
return (CMD_RETURN_NORMAL);
- window_copy_start_drag(c, &cmdq->mouse);
+ window_copy_start_drag(c, &item->mouse);
}
if (wp->mode == &window_copy_mode && args_has(self->args, 'u'))
window_copy_pageup(wp, 0);