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

Diff for /src/usr.bin/tmux/cmd-detach-client.c between version 1.6 and 1.7

version 1.6, 2011/01/04 00:42:46 version 1.7, 2011/03/03 08:51:47
Line 28 
Line 28 
   
 const struct cmd_entry cmd_detach_client_entry = {  const struct cmd_entry cmd_detach_client_entry = {
         "detach-client", "detach",          "detach-client", "detach",
         "t:", 0, 0,          "t:P", 0, 0,
         CMD_TARGET_CLIENT_USAGE,          "[-P] " CMD_TARGET_CLIENT_USAGE,
         CMD_READONLY,          CMD_READONLY,
         NULL,          NULL,
         NULL,          NULL,
Line 45 
Line 45 
         if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL)          if ((c = cmd_find_client(ctx, args_get(args, 't'))) == NULL)
                 return (-1);                  return (-1);
   
         server_write_client(c, MSG_DETACH, NULL, 0);          if (args_has(args, 'P'))
                   server_write_client(c, MSG_DETACHKILL, NULL, 0);
           else
                   server_write_client(c, MSG_DETACH, NULL, 0);
   
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7