diff options
author | nicm <nicm> | 2020-04-03 13:54:31 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-04-06 16:03:33 +0100 |
commit | 938ad5a98c2a37938ea726a910e640a2a8aa8d26 (patch) | |
tree | c0cccf1cfb348c8583895228fa0f6d7c94362c1e /cmd-new-window.c | |
parent | 9f378a163ff9457eb5b0398ea66263a32e58bba2 (diff) | |
download | rtmux-938ad5a98c2a37938ea726a910e640a2a8aa8d26.tar.gz rtmux-938ad5a98c2a37938ea726a910e640a2a8aa8d26.tar.bz2 rtmux-938ad5a98c2a37938ea726a910e640a2a8aa8d26.zip |
Use new window and new pane as well for -P to new-session or new-window.
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r-- | cmd-new-window.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c index 9a1025e9..2fb92830 100644 --- a/cmd-new-window.c +++ b/cmd-new-window.c @@ -108,7 +108,8 @@ cmd_new_window_exec(struct cmd *self, struct cmdq_item *item) if (args_has(args, 'P')) { if ((template = args_get(args, 'F')) == NULL) template = NEW_WINDOW_TEMPLATE; - cp = format_single(item, template, c, s, new_wl, NULL); + cp = format_single(item, template, c, s, new_wl, + new_wl->window->active); cmdq_print(item, "%s", cp); free(cp); } |