=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-show-messages.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- src/usr.bin/tmux/cmd-show-messages.c 2015/11/24 21:52:06 1.16 +++ src/usr.bin/tmux/cmd-show-messages.c 2015/12/13 14:32:38 1.17 @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-show-messages.c,v 1.16 2015/11/24 21:52:06 nicm Exp $ */ +/* $OpenBSD: cmd-show-messages.c,v 1.17 2015/12/13 14:32:38 nicm Exp $ */ /* * Copyright (c) 2009 Nicholas Marriott @@ -35,7 +35,7 @@ "show-messages", "showmsgs", "JTt:", 0, 0, "[-JT] " CMD_TARGET_CLIENT_USAGE, - 0, + CMD_CLIENT_T, cmd_show_messages_exec }; @@ -94,7 +94,7 @@ cmd_show_messages_exec(struct cmd *self, struct cmd_q *cmdq) { struct args *args = self->args; - struct client *c; + struct client *c = cmdq->state.c; struct message_entry *msg; char *tim; int done, blank; @@ -110,9 +110,6 @@ } if (done) return (CMD_RETURN_NORMAL); - - if ((c = cmd_find_client(cmdq, args_get(args, 't'), 0)) == NULL) - return (CMD_RETURN_ERROR); TAILQ_FOREACH(msg, &c->message_log, entry) { tim = ctime(&msg->msg_time);