diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-08 18:01:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-07-08 18:01:31 +0000 |
commit | 86504af1491c83fe9e4f4d2b882610f4efe0c60b (patch) | |
tree | c65bb30e776b23c955ccf30551d8211eb47bb14f /cmd-new-session.c | |
parent | 1825609d8d25d38f81b497f2317f60dbb4f9ad39 (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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index acb8f3a2..18ea73cd 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -1,4 +1,4 @@ -/* $Id: cmd-new-session.c,v 1.41 2009-05-04 17:58:26 nicm Exp $ */ +/* $OpenBSD: cmd-new-session.c,v 1.2 2009/07/07 19:49:19 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -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 |