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-show-messages.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-show-messages.c')
-rw-r--r-- | usr.bin/tmux/cmd-show-messages.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-show-messages.c b/usr.bin/tmux/cmd-show-messages.c index 38b3277e7e1..6f9cd3521ea 100644 --- a/usr.bin/tmux/cmd-show-messages.c +++ b/usr.bin/tmux/cmd-show-messages.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-messages.c,v 1.4 2012/07/11 07:10:15 nicm Exp $ */ +/* $OpenBSD: cmd-show-messages.c,v 1.5 2013/03/24 09:27:20 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott <nicm@users.sourceforge.net> @@ -48,7 +48,7 @@ cmd_show_messages_exec(struct cmd *self, struct cmd_ctx *ctx) char *tim; u_int i; - 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); for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) { |