summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-07-07 19:49:19 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-07-07 19:49:19 +0000
commit923ccfa2e8dfddc1611213bc027fd2968a84c04b (patch)
treea50aa399eceff37bcf97d902076c1e888d357fd4 /cmd-new-session.c
parent474fdebb7abf08aecbcf00a92b7d53cd9528649c (diff)
Rename the global options variables to be shorter and to make session options
clear. No functional change, getting this out of the way to make later options changes easier.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index 7c2c664b..95fc08b2 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -137,9 +137,9 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
cmd = data->cmd;
if (cmd == NULL)
- cmd = options_get_string(&global_options, "default-command");
+ cmd = options_get_string(&global_s_options, "default-command");
if (c == NULL || c->cwd == NULL)
- cwd = options_get_string(&global_options, "default-path");
+ cwd = options_get_string(&global_s_options, "default-path");
else
cwd = c->cwd;
@@ -150,7 +150,7 @@ cmd_new_session_exec(struct cmd *self, struct cmd_ctx *ctx)
sy = c->tty.sy;
}
- if (options_get_number(&global_options, "status")) {
+ if (options_get_number(&global_s_options, "status")) {
if (sy == 0)
sy = 1;
else