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

Diff for /src/usr.bin/tmux/cmd-attach-session.c between version 1.7 and 1.8

version 1.7, 2009/08/03 14:10:54 version 1.8, 2009/08/08 21:52:43
Line 29 
Line 29 
 const struct cmd_entry cmd_attach_session_entry = {  const struct cmd_entry cmd_attach_session_entry = {
         "attach-session", "attach",          "attach-session", "attach",
         "[-d] " CMD_TARGET_SESSION_USAGE,          "[-d] " CMD_TARGET_SESSION_USAGE,
         CMD_CANTNEST|CMD_STARTSERVER, CMD_CHFLAG('d'),          CMD_CANTNEST|CMD_STARTSERVER|CMD_SENDENVIRON, CMD_CHFLAG('d'),
         cmd_target_init,          cmd_target_init,
         cmd_target_parse,          cmd_target_parse,
         cmd_attach_session_exec,          cmd_attach_session_exec,
Line 43 
Line 43 
         struct cmd_target_data  *data = self->data;          struct cmd_target_data  *data = self->data;
         struct session          *s;          struct session          *s;
         struct client           *c;          struct client           *c;
           const char              *update;
         char                    *overrides, *cause;          char                    *overrides, *cause;
         u_int                    i;          u_int                    i;
   
Line 93 
Line 94 
   
                 ctx->cmdclient->session = s;                  ctx->cmdclient->session = s;
                 server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);                  server_write_client(ctx->cmdclient, MSG_READY, NULL, 0);
   
                   update = options_get_string(&s->options, "update-environment");
                   environ_update(update, &ctx->cmdclient->environ, &s->environ);
   
                 server_redraw_client(ctx->cmdclient);                  server_redraw_client(ctx->cmdclient);
         }          }
         recalculate_sizes();          recalculate_sizes();

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