[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.88 and 1.89

version 1.88, 2020/06/13 09:05:53 version 1.89, 2020/06/25 08:56:02
Line 68 
Line 68 
         before = args_has(args, 'b');          before = args_has(args, 'b');
         if (args_has(args, 'a') || before) {          if (args_has(args, 'a') || before) {
                 idx = winlink_shuffle_up(s, wl, before);                  idx = winlink_shuffle_up(s, wl, before);
                 if (idx == -1) {                  if (idx == -1)
                         cmdq_error(item, "couldn't get a window index");                          idx = target->idx;
                         return (CMD_RETURN_ERROR);  
                 }  
         }          }
   
         memset(&sc, 0, sizeof sc);          memset(&sc, 0, sizeof sc);
Line 114 
Line 112 
                 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, tc, 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.88  
changed lines
  Added in v.1.89