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-display-panes.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-display-panes.c')
-rw-r--r-- | usr.bin/tmux/cmd-display-panes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-display-panes.c b/usr.bin/tmux/cmd-display-panes.c index 9983eaacd1f..abbcd501ab2 100644 --- a/usr.bin/tmux/cmd-display-panes.c +++ b/usr.bin/tmux/cmd-display-panes.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-display-panes.c,v 1.4 2012/07/11 07:10:15 nicm Exp $ */ +/* $OpenBSD: cmd-display-panes.c,v 1.5 2013/03/24 09:27:19 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -42,7 +42,7 @@ cmd_display_panes_exec(struct cmd *self, struct cmd_ctx *ctx) struct args *args = self->args; struct client *c; - if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL) + if ((c = cmd_find_client(ctx, args_get(args, 't'), 0)) == NULL) return (CMD_RETURN_ERROR); server_set_identify(c); |