The branch, hooks has been updated
       via  3f7cae70a767e4439712abe0bc82e4d326f73052 (commit)
      from  24825bab1dd049380c5a8dd81569a99165f715a3 (commit)

- Log -----------------------------------------------------------------
commit 3f7cae70a767e4439712abe0bc82e4d326f73052
Author: Nicholas Marriott <nicholas.marri...@gmail.com>
Commit: Nicholas Marriott <nicholas.marri...@gmail.com>

    Use prep flags for show-messages.
---
 cmd-show-messages.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/cmd-show-messages.c b/cmd-show-messages.c
index 308668f..eebafe1 100644
--- a/cmd-show-messages.c
+++ b/cmd-show-messages.c
@@ -34,7 +34,7 @@ const struct cmd_entry cmd_show_messages_entry = {
        "show-messages", "showmsgs",
        "IJTt:", 0, 0,
        "[-IJT] " CMD_TARGET_CLIENT_USAGE,
-       0,
+       CMD_PREP_CLIENT_T,
        cmd_show_messages_exec
 };
 
@@ -126,7 +126,7 @@ enum cmd_retval
 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;
        u_int                    i;
@@ -152,9 +152,6 @@ cmd_show_messages_exec(struct cmd *self, struct cmd_q *cmdq)
        if (done)
                return (CMD_RETURN_NORMAL);
 
-       if ((c = cmd_find_client(cmdq, args_get(args, 't'), 0)) == NULL)
-               return (CMD_RETURN_ERROR);
-
        for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) {
                msg = &ARRAY_ITEM(&c->message_log, i);
 


-----------------------------------------------------------------------

Summary of changes:
 cmd-show-messages.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
tmux

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to