diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2011-07-30 17:52:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2011-07-30 17:52:32 +0000 |
commit | be179f6d7eec39c63d6b8d7aa90a2acefe4e7e04 (patch) | |
tree | 3fcd3a9cf5a3289341a7e77bac504c819b3a072f /cmd-pipe-pane.c | |
parent | 0252796a5750bc4cc3adc06c8c10eacb7136df6c (diff) | |
download | rtmux-be179f6d7eec39c63d6b8d7aa90a2acefe4e7e04.tar.gz rtmux-be179f6d7eec39c63d6b8d7aa90a2acefe4e7e04.tar.bz2 rtmux-be179f6d7eec39c63d6b8d7aa90a2acefe4e7e04.zip |
Do not require a client here, or pipe-pane will not work from the
command line.
Diffstat (limited to 'cmd-pipe-pane.c')
-rw-r--r-- | cmd-pipe-pane.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/cmd-pipe-pane.c b/cmd-pipe-pane.c index 1f27e6d9..00f0378a 100644 --- a/cmd-pipe-pane.c +++ b/cmd-pipe-pane.c @@ -55,11 +55,9 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) char *command; int old_fd, pipe_fd[2], null_fd; - if ((c = cmd_find_client(ctx, NULL)) == NULL) - return (-1); - if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (-1); + c = cmd_find_client(ctx, NULL); /* Destroy the old pipe. */ old_fd = wp->pipe_fd; |