summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2011-07-30 17:52:33 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2011-07-30 17:52:33 +0000
commite6b3f8d1d32fe473849f2aa21ecd4332c376dcad (patch)
tree9978057f742ce03c9919c2de60cc5e83bd06c932 /usr.bin/tmux
parentd5fa7e95862129f0133067252d6ea0dd787ffc09 (diff)
Do not require a client here, or pipe-pane will not work from the
command line.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/cmd-pipe-pane.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c
index 405c49ffeb2..6c4c265e005 100644
--- a/usr.bin/tmux/cmd-pipe-pane.c
+++ b/usr.bin/tmux/cmd-pipe-pane.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-pipe-pane.c,v 1.19 2011/03/29 19:30:16 nicm Exp $ */
+/* $OpenBSD: cmd-pipe-pane.c,v 1.20 2011/07/30 17:52:32 nicm Exp $ */
/*
* Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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;