[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.86 and 1.87

version 1.86, 2020/04/13 14:46:04 version 1.87, 2020/04/13 20:51:57
Line 55 
Line 55 
         struct cmd_find_state   *current = cmdq_get_current(item);          struct cmd_find_state   *current = cmdq_get_current(item);
         struct cmd_find_state   *target = cmdq_get_target(item);          struct cmd_find_state   *target = cmdq_get_target(item);
         struct spawn_context     sc;          struct spawn_context     sc;
         struct client           *c = cmd_find_client(item, NULL, 1);          struct client           *tc = cmdq_get_target_client(item);
         struct session          *s = target->s;          struct session          *s = target->s;
         struct winlink          *wl = target->wl;          struct winlink          *wl = target->wl;
         int                      idx = target->idx;          int                      idx = target->idx;
Line 73 
Line 73 
         memset(&sc, 0, sizeof sc);          memset(&sc, 0, sizeof sc);
         sc.item = item;          sc.item = item;
         sc.s = s;          sc.s = s;
         sc.c = c;          sc.tc = tc;
   
         sc.name = args_get(args, 'n');          sc.name = args_get(args, 'n');
         sc.argc = args->argc;          sc.argc = args->argc;
Line 109 
Line 109 
         if (args_has(args, 'P')) {          if (args_has(args, 'P')) {
                 if ((template = args_get(args, 'F')) == NULL)                  if ((template = args_get(args, 'F')) == NULL)
                         template = NEW_WINDOW_TEMPLATE;                          template = NEW_WINDOW_TEMPLATE;
                 cp = format_single(item, template, c, s, new_wl,                  cp = format_single(item, template, tc, s, new_wl,
                     new_wl->window->active);                      new_wl->window->active);
                 cmdq_print(item, "%s", cp);                  cmdq_print(item, "%s", cp);
                 free(cp);                  free(cp);

Legend:
Removed from v.1.86  
changed lines
  Added in v.1.87