summaryrefslogtreecommitdiffstats
path: root/cmd-new-session.c
diff options
context:
space:
mode:
authornicm <nicm>2020-04-03 13:54:31 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2020-04-06 16:03:33 +0100
commit938ad5a98c2a37938ea726a910e640a2a8aa8d26 (patch)
treec0cccf1cfb348c8583895228fa0f6d7c94362c1e /cmd-new-session.c
parent9f378a163ff9457eb5b0398ea66263a32e58bba2 (diff)
Use new window and new pane as well for -P to new-session or new-window.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r--cmd-new-session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c
index c76b564e..a75fc972 100644
--- a/cmd-new-session.c
+++ b/cmd-new-session.c
@@ -334,7 +334,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item)
if (args_has(args, 'P')) {
if ((template = args_get(args, 'F')) == NULL)
template = NEW_SESSION_TEMPLATE;
- cp = format_single(item, template, c, s, NULL, NULL);
+ cp = format_single(item, template, c, s, s->curw, NULL);
cmdq_print(item, "%s", cp);
free(cp);
}