mirror of
https://github.com/tmate-io/tmate.git
synced 2026-01-23 02:24:06 +00:00
Move struct options into options.c.
This commit is contained in:
parent
67c3a014b9
commit
44657bf932
37 changed files with 223 additions and 201 deletions
|
|
@ -73,7 +73,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||
server_fill_environ(s, &env);
|
||||
|
||||
if (args->argc == 0) {
|
||||
cmd = options_get_string(&s->options, "default-command");
|
||||
cmd = options_get_string(s->options, "default-command");
|
||||
if (cmd != NULL && *cmd != '\0') {
|
||||
argc = 1;
|
||||
argv = (char **)&cmd;
|
||||
|
|
@ -135,9 +135,9 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq)
|
|||
else
|
||||
size = (wp->sx * percentage) / 100;
|
||||
}
|
||||
hlimit = options_get_number(&s->options, "history-limit");
|
||||
hlimit = options_get_number(s->options, "history-limit");
|
||||
|
||||
shell = options_get_string(&s->options, "default-shell");
|
||||
shell = options_get_string(s->options, "default-shell");
|
||||
if (*shell == '\0' || areshell(shell))
|
||||
shell = _PATH_BSHELL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue