[BACK]Return to cmd-new-window.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/cmd-new-window.c between version 1.23 and 1.24

version 1.23, 2012/03/17 22:35:09 version 1.24, 2012/05/22 11:35:37
Line 122 
Line 122 
                 server_status_session_group(s);                  server_status_session_group(s);
   
         if (args_has(args, 'P')) {          if (args_has(args, 'P')) {
                 template = "#{session_name}:#{window_index}";                  if ((template = args_get(args, 'F')) == NULL)
                 if (args_has(args, 'F'))                          template = DEFAULT_PANE_INFO_TEMPLATE;
                         template = args_get(args, 'F');  
   
                 ft = format_create();                  ft = format_create();
                 if ((c = cmd_find_client(ctx, NULL)) != NULL)                  if ((c = cmd_find_client(ctx, NULL)) != NULL)
                     format_client(ft, c);                      format_client(ft, c);
                 format_session(ft, s);                  format_session(ft, s);
                 format_winlink(ft, s, wl);                  format_winlink(ft, s, wl);
                   format_window_pane(ft, wl->window->active);
   
                 cp = format_expand(ft, template);                  cp = format_expand(ft, template);
                 ctx->print(ctx, "%s", cp);                  ctx->print(ctx, "%s", cp);

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24