[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.110 and 1.111

version 1.110, 2018/03/01 12:53:08 version 1.111, 2018/05/24 09:42:49
Line 156 
Line 156 
         /* Get the new session working directory. */          /* Get the new session working directory. */
         if ((tmp = args_get(args, 'c')) != NULL)          if ((tmp = args_get(args, 'c')) != NULL)
                 cwd = format_single(item, tmp, c, NULL, NULL, NULL);                  cwd = format_single(item, tmp, c, NULL, NULL, NULL);
         else if (c != NULL && c->session == NULL && c->cwd != NULL)  
                 cwd = xstrdup(c->cwd);  
         else          else
                 cwd = xstrdup(".");                  cwd = xstrdup(server_client_get_cwd(c, NULL));
   
         /*          /*
          * If this is a new client, check for nesting and save the termios           * If this is a new client, check for nesting and save the termios

Legend:
Removed from v.1.110  
changed lines
  Added in v.1.111