From 5cc4961fd28fe920236c6716f6ff751d22d90188 Mon Sep 17 00:00:00 2001 From: Tiago Cunha Date: Tue, 22 May 2012 21:03:25 +0000 Subject: Sync OpenBSD patchset 1119: Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam. --- cmd-split-window.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd-split-window.c') diff --git a/cmd-split-window.c b/cmd-split-window.c index 5b24d461..6cf08a20 100644 --- a/cmd-split-window.c +++ b/cmd-split-window.c @@ -138,9 +138,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) -- cgit