aboutsummaryrefslogtreecommitdiff
path: root/cmd-new-window.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2020-04-06 04:01:42 +0100
committerThomas Adam <thomas@xteddy.org>2020-04-06 04:01:42 +0100
commit71ab50eddd98e1d149e1b22e74ae01a47f555a1a (patch)
tree8750e898f104285927af70832245ca2614ce574c /cmd-new-window.c
parent450315aa74c9821ce1bc8c4d51f7ab4abf55993a (diff)
parentfccce69cf08b220ecad690e22451afd487e4b639 (diff)
downloadrtmux-71ab50eddd98e1d149e1b22e74ae01a47f555a1a.tar.gz
rtmux-71ab50eddd98e1d149e1b22e74ae01a47f555a1a.tar.bz2
rtmux-71ab50eddd98e1d149e1b22e74ae01a47f555a1a.zip
Merge branch 'obsd-master'
Diffstat (limited to 'cmd-new-window.c')
-rw-r--r--cmd-new-window.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd-new-window.c b/cmd-new-window.c
index a4d6c014..033d208a 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);
}