diff options
author | nicm <nicm> | 2015-12-11 12:27:36 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-12-11 12:27:36 +0000 |
commit | 01831da5f5dd2a1b7622ad421a757cacedbdfc59 (patch) | |
tree | c366c7371b12b5633c551cb9862cb9068bff93c6 /cmd-split-window.c | |
parent | e0f26dcda36dc35741da6047a11efb853b3137d9 (diff) | |
download | rtmux-01831da5f5dd2a1b7622ad421a757cacedbdfc59.tar.gz rtmux-01831da5f5dd2a1b7622ad421a757cacedbdfc59.tar.bz2 rtmux-01831da5f5dd2a1b7622ad421a757cacedbdfc59.zip |
Add cmdq as an argument to format_create and add a format for the
command name (will also be used for more later).
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r-- | cmd-split-window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c index 859e1559..80d9e2b1 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -88,7 +88,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) to_free = NULL; if (args_has(args, 'c')) { - ft = format_create(0); + ft = format_create(cmdq, 0); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL, NULL); to_free = cwd = format_expand(ft, args_get(args, 'c')); @@ -165,7 +165,7 @@ cmd_split_window_exec(struct cmd *self, struct cmd_q *cmdq) if ((template = args_get(args, 'F')) == NULL) template = SPLIT_WINDOW_TEMPLATE; - ft = format_create(0); + ft = format_create(cmdq, 0); format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, wl, new_wp); |