This adds formatting support to split-window.
---
 trunk/cmd-split-window.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/trunk/cmd-split-window.c b/trunk/cmd-split-window.c
index 5b24d46..6cf08a2 100644
--- a/trunk/cmd-split-window.c
+++ b/trunk/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)
-- 
1.7.10


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to