summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/cmd-show-messages.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2013-03-24 09:27:21 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2013-03-24 09:27:21 +0000
commit305b745009bf24b8ebbc52b8222585c7e8aa0f92 (patch)
tree639517781f3838f92ef715fe5d226080d80d71e8 /usr.bin/tmux/cmd-show-messages.c
parent1163df4c48716f5f24bbe37bb69ac58935436089 (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-show-messages.c')
-rw-r--r--usr.bin/tmux/cmd-show-messages.c4
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++) {