[BACK]Return to cmd-show-messages.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-show-messages.c between version 1.2 and 1.3

version 1.2, 2009/12/03 22:50:10 version 1.3, 2011/01/04 00:42:47
Line 31 
Line 31 
   
 const struct cmd_entry cmd_show_messages_entry = {  const struct cmd_entry cmd_show_messages_entry = {
         "show-messages", "showmsgs",          "show-messages", "showmsgs",
           "t:", 0, 0,
         CMD_TARGET_CLIENT_USAGE,          CMD_TARGET_CLIENT_USAGE,
         0, "",          0,
         cmd_target_init,          NULL,
         cmd_target_parse,          NULL,
         cmd_show_messages_exec,          cmd_show_messages_exec
         cmd_target_free,  
         cmd_target_print  
 };  };
   
 int  int
 cmd_show_messages_exec(struct cmd *self, struct cmd_ctx *ctx)  cmd_show_messages_exec(struct cmd *self, struct cmd_ctx *ctx)
 {  {
         struct cmd_target_data          *data = self->data;          struct args             *args = self->args;
         struct client                   *c;          struct client           *c;
         struct message_entry            *msg;          struct message_entry    *msg;
         char                            *tim;          char                    *tim;
         u_int                            i;          u_int                    i;
   
         if ((c = cmd_find_client(ctx, data->target)) == NULL)          if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL)
                 return (-1);                  return (-1);
   
         for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) {          for (i = 0; i < ARRAY_LENGTH(&c->message_log); i++) {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3