summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-capture-pane.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2020-04-13 10:59:58 +0000
committernicm <nicm@openbsd.org>2020-04-13 10:59:58 +0000
commit040343ae18e7aa6a49c6acf6e4add8a0b76f6fff (patch)
tree8ed8ccb63639c656437cc1539d3d2b96b405d399 /usr.bin/tmux/cmd-capture-pane.c
parentMake struct cmd local to cmd.c and move it out of tmux.h. (diff)
downloadwireguard-openbsd-040343ae18e7aa6a49c6acf6e4add8a0b76f6fff.tar.xz
wireguard-openbsd-040343ae18e7aa6a49c6acf6e4add8a0b76f6fff.zip
Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
use more clearly defined and preparation for some future work).
Diffstat (limited to 'usr.bin/tmux/cmd-capture-pane.c')
-rw-r--r--usr.bin/tmux/cmd-capture-pane.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tmux/cmd-capture-pane.c b/usr.bin/tmux/cmd-capture-pane.c
index 1542d0be134..a250b5b980f 100644
--- a/usr.bin/tmux/cmd-capture-pane.c
+++ b/usr.bin/tmux/cmd-capture-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-capture-pane.c,v 1.52 2020/04/13 08:26:27 nicm Exp $ */
+/* $OpenBSD: cmd-capture-pane.c,v 1.53 2020/04/13 10:59:58 nicm Exp $ */
/*
* Copyright (c) 2009 Jonathan Alvarado <radobobo@users.sourceforge.net>
@@ -193,8 +193,8 @@ static enum cmd_retval
cmd_capture_pane_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = cmd_get_args(self);
- struct client *c = item->client;
- struct window_pane *wp = item->target.wp;
+ struct client *c = cmdq_get_client(item);
+ struct window_pane *wp = cmdq_get_target(item)->wp;
char *buf, *cause;
const char *bufname;
size_t len;