From 278d9bc721d4149662f69da9e43cf2b0497536d4 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Mon, 14 Jun 2010 23:06:13 +0000 Subject: 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. --- cmd-pipe-pane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-pipe-pane.c') 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) -- cgit v1.2.3