diff options
author | 2016-10-16 19:04:05 +0000 | |
---|---|---|
committer | 2016-10-16 19:04:05 +0000 | |
commit | 68e0a7f271bc1c08e58a23a65844d346c6665089 (patch) | |
tree | 315962d2740c0dca5e710bb5c9db0ac9878f55ba /usr.bin/tmux/cmd-paste-buffer.c | |
parent | Replace fs/msdosfs/{msdosfs_conv.c,direntry.h} with stripped-down (diff) | |
download | wireguard-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-paste-buffer.c')
-rw-r--r-- | usr.bin/tmux/cmd-paste-buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/cmd-paste-buffer.c b/usr.bin/tmux/cmd-paste-buffer.c index 1529eea89ed..0e256108eca 100644 --- a/usr.bin/tmux/cmd-paste-buffer.c +++ b/usr.bin/tmux/cmd-paste-buffer.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-paste-buffer.c,v 1.36 2016/10/14 22:14:22 nicm Exp $ */ +/* $OpenBSD: cmd-paste-buffer.c,v 1.37 2016/10/16 19:04:05 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com> @@ -28,7 +28,7 @@ * Paste paste buffer if present. */ -static enum cmd_retval cmd_paste_buffer_exec(struct cmd *, struct cmd_q *); +static enum cmd_retval cmd_paste_buffer_exec(struct cmd *, struct cmdq_item *); const struct cmd_entry cmd_paste_buffer_entry = { .name = "paste-buffer", @@ -45,10 +45,10 @@ const struct cmd_entry cmd_paste_buffer_entry = { }; static enum cmd_retval -cmd_paste_buffer_exec(struct cmd *self, struct cmd_q *cmdq) +cmd_paste_buffer_exec(struct cmd *self, struct cmdq_item *item) { struct args *args = self->args; - struct window_pane *wp = cmdq->state.tflag.wp; + struct window_pane *wp = item->state.tflag.wp; struct paste_buffer *pb; const char *sepstr, *bufname, *bufdata, *bufend, *line; size_t seplen, bufsize; @@ -63,7 +63,7 @@ cmd_paste_buffer_exec(struct cmd *self, struct cmd_q *cmdq) else { pb = paste_get_name(bufname); if (pb == NULL) { - cmdq_error(cmdq, "no buffer %s", bufname); + cmdq_error(item, "no buffer %s", bufname); return (CMD_RETURN_ERROR); } } |