summaryrefslogtreecommitdiffstats
path: root/cmd-break-pane.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2012-05-22 11:35:37 +0000
committerNicholas Marriott <nicm@openbsd.org>2012-05-22 11:35:37 +0000
commitebf94bc9cba6c41074fdfa1d1084ad5fff43fc24 (patch)
treef7f941af93113b5373618b569ea211c5acd7cfa4 /cmd-break-pane.c
parent682884edc5ef0b6ded98b385fce3066e820317ff (diff)
Switch all of the various choose- and list- commands over to the format
infrastructure, from Thomas Adam.
Diffstat (limited to 'cmd-break-pane.c')
-rw-r--r--cmd-break-pane.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/cmd-break-pane.c b/cmd-break-pane.c
index 6e6ab589..8e09774b 100644
--- a/cmd-break-pane.c
+++ b/cmd-break-pane.c
@@ -93,9 +93,10 @@ cmd_break_pane_exec(struct cmd *self, struct cmd_ctx *ctx)
server_status_session_group(s);
if (args_has(args, 'P')) {
- template = "#{session_name}:#{window_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)
format_client(ft, c);