diff options
author | 2013-03-24 09:27:19 +0000 | |
---|---|---|
committer | 2013-03-24 09:27:19 +0000 | |
commit | 039128eefede7e113429e0180a6491fe2d3a4d62 (patch) | |
tree | d275e4cbadced2ca7f40ca595fd438d002cea21e /usr.bin/tmux/cmd-confirm-before.c | |
parent | Allow display-message with no curclient. (diff) | |
download | wireguard-openbsd-039128eefede7e113429e0180a6491fe2d3a4d62.tar.xz wireguard-openbsd-039128eefede7e113429e0180a6491fe2d3a4d62.zip |
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-confirm-before.c')
-rw-r--r-- | usr.bin/tmux/cmd-confirm-before.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-confirm-before.c b/usr.bin/tmux/cmd-confirm-before.c index d4fa92569cb..c5181b8082d 100644 --- a/usr.bin/tmux/cmd-confirm-before.c +++ b/usr.bin/tmux/cmd-confirm-before.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-confirm-before.c,v 1.17 2013/03/22 15:54:29 nicm Exp $ */ +/* $OpenBSD: cmd-confirm-before.c,v 1.18 2013/03/24 09:27:19 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -79,7 +79,7 @@ cmd_confirm_before_exec(struct cmd *self, struct cmd_ctx *ctx) return (CMD_RETURN_ERROR); } - 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); if ((prompt = args_get(args, 'p')) != NULL) |