diff options
author | nicm <nicm> | 2017-02-03 11:57:27 +0000 |
---|---|---|
committer | nicm <nicm> | 2017-02-03 11:57:27 +0000 |
commit | 7d23d019c0df197d724ced7fec21dc2047634c9b (patch) | |
tree | 7f07df20858bf10aef7db907bf4998b53fedd7db /cmd-new-session.c | |
parent | dd0c8147795c518de443c33895c614e52b42677f (diff) | |
download | rtmux-7d23d019c0df197d724ced7fec21dc2047634c9b.tar.gz rtmux-7d23d019c0df197d724ced7fec21dc2047634c9b.tar.bz2 rtmux-7d23d019c0df197d724ced7fec21dc2047634c9b.zip |
Add a window or pane id "tag" to each format tree and use it to separate
jobs, this means that if the same job is used for different windows or
panes (for example in pane-border-format), it will be run separately for
each pane.
Diffstat (limited to 'cmd-new-session.c')
-rw-r--r-- | cmd-new-session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-new-session.c b/cmd-new-session.c index a39522ac..4e7b413b 100644 --- a/cmd-new-session.c +++ b/cmd-new-session.c @@ -139,7 +139,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) /* Get the new session working directory. */ if (args_has(args, 'c')) { - ft = format_create(item, 0); + ft = format_create(item, FORMAT_NONE, 0); format_defaults(ft, c, NULL, NULL, NULL); to_free = cwd = format_expand(ft, args_get(args, 'c')); format_free(ft); @@ -298,7 +298,7 @@ cmd_new_session_exec(struct cmd *self, struct cmdq_item *item) if ((template = args_get(args, 'F')) == NULL) template = NEW_SESSION_TEMPLATE; - ft = format_create(item, 0); + ft = format_create(item, FORMAT_NONE, 0); format_defaults(ft, c, s, NULL, NULL); cp = format_expand(ft, template); |