diff options
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r-- | cmd-new-window.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c index d858ee30..cf93567d 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -30,8 +30,9 @@ int cmd_new_window_exec(struct cmd *, struct cmd_ctx *); const struct cmd_entry cmd_new_window_entry = { "new-window", "neww", - "adkn:Pt:", 0, 1, - "[-adk] [-n window-name] [-t target-window] [command]", + "ac:dkn:Pt:", 0, 1, + "[-adk] [-c start-directory] [-n window-name] [-t target-window] " + "[command]", 0, NULL, NULL, @@ -99,7 +100,7 @@ cmd_new_window_exec(struct cmd *self, struct cmd_ctx *ctx) cmd = options_get_string(&s->options, "default-command"); else cmd = args->argv[0]; - cwd = cmd_get_default_path(ctx); + cwd = cmd_get_default_path(ctx, args_get(args, 'c')); if (idx == -1) idx = -1 - options_get_number(&s->options, "base-index"); |