summaryrefslogtreecommitdiffstats
path: root/cmd-pipe-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2010-06-14 23:06:13 +0000
committerNicholas Marriott <nicm@openbsd.org>2010-06-14 23:06:13 +0000
commit278d9bc721d4149662f69da9e43cf2b0497536d4 (patch)
treeb2117d8a7b7e60db7cbcc3405d7d657a0e8678d6 /cmd-pipe-pane.c
parent1484eb8a5192cc5c2f9da543949c3d1e2e0a58a7 (diff)
Last change erroneously used the target argument for looking up the
client which caused pipe-pane to fail when used from the command line. Instead pass NULL which should use the current client. Spotted by Tiago Cunha.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r--cmd-pipe-pane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c
index 72903a3d..edc624dd 100644
--- a/cmd-pipe-pane.c
+++ b/cmd-pipe-pane.c
@@ -56,7 +56,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
char *command;
int old_fd, pipe_fd[2], null_fd, mode;
- if ((c = cmd_find_client(ctx, data->target)) == NULL)
+ if ((c = cmd_find_client(ctx, NULL)) == NULL)
return (-1);
if (cmd_find_pane(ctx, data->target, NULL, &wp) == NULL)