Return to cmd-new-session.c CVS log | Up to [local] / src / usr.bin / tmux |
version 1.86, 2016/02/04 14:11:20 | version 1.87, 2016/03/05 07:47:52 | ||
---|---|---|---|
|
|
||
format_defaults(ft, c, NULL, NULL, NULL); | format_defaults(ft, c, NULL, NULL, NULL); | ||
to_free = cwd = format_expand(ft, args_get(args, 'c')); | to_free = cwd = format_expand(ft, args_get(args, 'c')); | ||
format_free(ft); | format_free(ft); | ||
} else if (c != NULL && c->session == NULL) | } else if (c != NULL && c->session == NULL && c->cwd != NULL) | ||
cwd = c->cwd; | cwd = c->cwd; | ||
else | else | ||
cwd = "."; | cwd = "."; |