diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-24 09:27:21 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-03-24 09:27:21 +0000 |
commit | 305b745009bf24b8ebbc52b8222585c7e8aa0f92 (patch) | |
tree | 639517781f3838f92ef715fe5d226080d80d71e8 /usr.bin/tmux/cmd-pipe-pane.c | |
parent | 1163df4c48716f5f24bbe37bb69ac58935436089 (diff) |
Fix error reporting for client commands by adding a flag to
cmd_find_client to tell it whether or not to show errors, sometimes it's
needed and sometimes not.
Diffstat (limited to 'usr.bin/tmux/cmd-pipe-pane.c')
-rw-r--r-- | usr.bin/tmux/cmd-pipe-pane.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-pipe-pane.c b/usr.bin/tmux/cmd-pipe-pane.c index 1078f233d18..217a02a5cdb 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.23 2013/03/22 10:31:22 nicm Exp $ */ +/* $OpenBSD: cmd-pipe-pane.c,v 1.24 2013/03/24 09:27:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -57,7 +57,7 @@ cmd_pipe_pane_exec(struct cmd *self, struct cmd_ctx *ctx) if (cmd_find_pane(ctx, args_get(args, 't'), NULL, &wp) == NULL) return (CMD_RETURN_ERROR); - c = cmd_find_client(ctx, NULL); + c = cmd_find_client(ctx, NULL, 1); /* Destroy the old pipe. */ old_fd = wp->pipe_fd; |