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

Diff for /src/usr.bin/tmux/cmd-new-session.c between version 1.12 and 1.13

version 1.12, 2009/08/13 19:16:14 version 1.13, 2009/08/13 20:11:58
Line 118 
Line 118 
         struct termios                   tio;          struct termios                   tio;
         const char                      *update;          const char                      *update;
         char                            *overrides, *cmd, *cwd, *cause;          char                            *overrides, *cmd, *cwd, *cause;
         int                              detached;          int                              detached, idx;
         u_int                            sx, sy;          u_int                            sx, sy;
   
         if (data->newname != NULL && session_find(data->newname) != NULL) {          if (data->newname != NULL && session_find(data->newname) != NULL) {
Line 216 
Line 216 
         tio.c_ospeed = TTYDEF_SPEED;          tio.c_ospeed = TTYDEF_SPEED;
   
         /* Create the new session. */          /* Create the new session. */
         s = session_create(data->newname, cmd, cwd, &env, &tio, sx, sy, &cause);          idx = -1 - options_get_number(&global_s_options, "base-index");
           s = session_create(
               data->newname, cmd, cwd, &env, &tio, idx, sx, sy, &cause);
         if (s == NULL) {          if (s == NULL) {
                 ctx->error(ctx, "create session failed: %s", cause);                  ctx->error(ctx, "create session failed: %s", cause);
                 xfree(cause);                  xfree(cause);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13