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

Diff for /src/usr.bin/tmux/cmd-break-pane.c between version 1.12 and 1.13

version 1.12, 2012/02/02 00:10:11 version 1.13, 2012/03/12 13:31:09
Line 30 
Line 30 
   
 const struct cmd_entry cmd_break_pane_entry = {  const struct cmd_entry cmd_break_pane_entry = {
         "break-pane", "breakp",          "break-pane", "breakp",
         "dt:", 0, 0,          "dPF:t:", 0, 0,
         "[-d] " CMD_TARGET_PANE_USAGE,          "[-dP] [-F format] " CMD_TARGET_PANE_USAGE,
         0,          0,
         NULL,          NULL,
         NULL,          NULL,
Line 49 
Line 49 
         char                    *name;          char                    *name;
         char                    *cause;          char                    *cause;
         int                      base_idx;          int                      base_idx;
           struct client           *c;
           struct format_tree      *ft;
           const char              *template;
           char                    *cp;
   
         if ((wl = cmd_find_pane(ctx, args_get(args, 't'), &s, &wp)) == NULL)          if ((wl = cmd_find_pane(ctx, args_get(args, 't'), &s, &wp)) == NULL)
                 return (-1);                  return (-1);
Line 88 
Line 92 
         server_redraw_session(s);          server_redraw_session(s);
         server_status_session_group(s);          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');
                   ft = format_create();
                   if ((c = cmd_find_client(ctx, NULL)) != NULL)
                           format_client(ft, c);
                   format_session(ft, s);
                   format_winlink(ft, s, wl);
                   format_window_pane(ft, wp);
   
                   cp = format_expand(ft, template);
                   ctx->print(ctx, "%s", cp);
                   xfree(cp);
   
                   format_free(ft);
           }
         return (0);          return (0);
 }  }

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13