version 1.19, 2012/01/20 19:54:07 |
version 1.20, 2012/01/31 15:52:21 |
|
|
|
|
const struct cmd_entry cmd_new_window_entry = { |
const struct cmd_entry cmd_new_window_entry = { |
"new-window", "neww", |
"new-window", "neww", |
"adkn:Pt:", 0, 1, |
"ac:dkn:Pt:", 0, 1, |
"[-adk] [-n window-name] [-t target-window] [command]", |
"[-adk] [-c start-directory] [-n window-name] [-t target-window] " |
|
"[command]", |
0, |
0, |
NULL, |
NULL, |
NULL, |
NULL, |
|
|
cmd = options_get_string(&s->options, "default-command"); |
cmd = options_get_string(&s->options, "default-command"); |
else |
else |
cmd = args->argv[0]; |
cmd = args->argv[0]; |
cwd = cmd_get_default_path(ctx); |
cwd = cmd_get_default_path(ctx, args_get(args, 'c')); |
|
|
if (idx == -1) |
if (idx == -1) |
idx = -1 - options_get_number(&s->options, "base-index"); |
idx = -1 - options_get_number(&s->options, "base-index"); |