=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-new-session.c,v retrieving revision 1.73 retrieving revision 1.74 diff -c -r1.73 -r1.74 *** src/usr.bin/tmux/cmd-new-session.c 2015/10/27 13:23:24 1.73 --- src/usr.bin/tmux/cmd-new-session.c 2015/10/27 15:58:42 1.74 *************** *** 1,4 **** ! /* $OpenBSD: cmd-new-session.c,v 1.73 2015/10/27 13:23:24 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-new-session.c,v 1.74 2015/10/27 15:58:42 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 197,203 **** goto error; } } ! if (sy > 0 && options_get_number(&global_s_options, "status")) sy--; if (sx == 0) sx = 1; --- 197,203 ---- goto error; } } ! if (sy > 0 && options_get_number(global_s_options, "status")) sy--; if (sx == 0) sx = 1; *************** *** 211,217 **** argc = args->argc; argv = args->argv; } else if (target == NULL) { ! cmd = options_get_string(&global_s_options, "default-command"); if (cmd != NULL && *cmd != '\0') { argc = 1; argv = &cmd; --- 211,217 ---- argc = args->argc; argv = args->argv; } else if (target == NULL) { ! cmd = options_get_string(global_s_options, "default-command"); if (cmd != NULL && *cmd != '\0') { argc = 1; argv = &cmd; *************** *** 232,244 **** /* Construct the environment. */ environ_init(&env); if (c != NULL && !args_has(args, 'E')) { ! update = options_get_string(&global_s_options, "update-environment"); environ_update(update, &c->environ, &env); } /* Create the new session. */ ! idx = -1 - options_get_number(&global_s_options, "base-index"); s = session_create(newname, argc, argv, path, cwd, &env, tiop, idx, sx, sy, &cause); if (s == NULL) { --- 232,244 ---- /* Construct the environment. */ environ_init(&env); if (c != NULL && !args_has(args, 'E')) { ! update = options_get_string(global_s_options, "update-environment"); environ_update(update, &c->environ, &env); } /* Create the new session. */ ! idx = -1 - options_get_number(global_s_options, "base-index"); s = session_create(newname, argc, argv, path, cwd, &env, tiop, idx, sx, sy, &cause); if (s == NULL) { *************** *** 252,258 **** if (argc >= 0 && args_has(args, 'n')) { w = s->curw->window; window_set_name(w, args_get(args, 'n')); ! options_set_number(&w->options, "automatic-rename", 0); } /* --- 252,258 ---- if (argc >= 0 && args_has(args, 'n')) { w = s->curw->window; window_set_name(w, args_get(args, 'n')); ! options_set_number(w->options, "automatic-rename", 0); } /*