[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.43 and 1.44

version 1.43, 2014/10/20 23:35:28 version 1.44, 2015/02/05 10:29:43
Line 109 
Line 109 
   
         if (args_has(args, 'c')) {          if (args_has(args, 'c')) {
                 ft = format_create();                  ft = format_create();
                 if ((c = cmd_find_client(cmdq, NULL, 1)) != NULL)                  format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, NULL,
                         format_client(ft, c);                      NULL);
                 format_session(ft, s);  
                 format_winlink(ft, s, s->curw);  
                 format_window_pane(ft, s->curw->window->active);  
                 cp = format_expand(ft, args_get(args, 'c'));                  cp = format_expand(ft, args_get(args, 'c'));
                 format_free(ft);                  format_free(ft);
   
Line 173 
Line 170 
                         template = NEW_WINDOW_TEMPLATE;                          template = NEW_WINDOW_TEMPLATE;
   
                 ft = format_create();                  ft = format_create();
                 if ((c = cmd_find_client(cmdq, NULL, 1)) != NULL)                  format_defaults(ft, cmd_find_client(cmdq, NULL, 1), s, wl,
                         format_client(ft, c);                      NULL);
                 format_session(ft, s);  
                 format_winlink(ft, s, wl);  
                 format_window_pane(ft, wl->window->active);  
   
                 cp = format_expand(ft, template);                  cp = format_expand(ft, template);
                 cmdq_print(cmdq, "%s", cp);                  cmdq_print(cmdq, "%s", cp);

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44