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

Diff for /src/usr.bin/tmux/cmd-split-window.c between version 1.54 and 1.55

version 1.54, 2014/11/12 22:57:06 version 1.55, 2015/02/05 10:29:43
Line 89 
Line 89 
   
         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 181 
Line 178 
                         template = SPLIT_WINDOW_TEMPLATE;                          template = SPLIT_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);                      new_wp);
                 format_session(ft, s);  
                 format_winlink(ft, s, wl);  
                 format_window_pane(ft, new_wp);  
   
                 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.54  
changed lines
  Added in v.1.55