summaryrefslogtreecommitdiffstats
path: root/cmd-split-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd-split-window.c')
-rw-r--r--cmd-split-window.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd-split-window.c b/cmd-split-window.c
index 5123942e..db00a67b 100644
--- a/cmd-split-window.c
+++ b/cmd-split-window.c
@@ -139,9 +139,8 @@ cmd_split_window_exec(struct cmd *self, struct cmd_ctx *ctx)
environ_free(&env);
if (args_has(args, 'P')) {
- template = "#{session_name}:#{window_index}.#{pane_index}";
- if (args_has(args, 'F'))
- template = args_get(args, 'F');
+ if ((template = args_get(args, 'F')) == NULL)
+ template = DEFAULT_PANE_INFO_TEMPLATE;
ft = format_create();
if ((c = cmd_find_client(ctx, NULL)) != NULL)