[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.63 and 1.64

version 1.63, 2014/10/20 23:35:28 version 1.64, 2015/02/05 10:29:43
Line 119 
Line 119 
         /* Get the new session working directory. */          /* Get the new session working directory. */
         if (args_has(args, 'c')) {          if (args_has(args, 'c')) {
                 ft = format_create();                  ft = format_create();
                 if ((c0 = cmd_find_client(cmdq, NULL, 1)) != NULL)                  format_defaults(ft, cmd_find_client(cmdq, NULL, 1), NULL, NULL,
                         format_client(ft, c0);                      NULL);
                 cp = format_expand(ft, args_get(args, 'c'));                  cp = format_expand(ft, args_get(args, 'c'));
                 format_free(ft);                  format_free(ft);
   
Line 287 
Line 287 
                         template = NEW_SESSION_TEMPLATE;                          template = NEW_SESSION_TEMPLATE;
   
                 ft = format_create();                  ft = format_create();
                 if ((c0 = cmd_find_client(cmdq, NULL, 1)) != NULL)                  format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL,
                         format_client(ft, c0);                      NULL);
                 format_session(ft, s);  
   
                 cp = format_expand(ft, template);                  cp = format_expand(ft, template);
                 cmdq_print(cmdq, "%s", cp);                  cmdq_print(cmdq, "%s", cp);

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64