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

Diff for /src/usr.bin/tmux/cmd-move-window.c between version 1.32 and 1.33

version 1.32, 2020/04/22 21:15:33 version 1.33, 2020/06/13 09:05:53
Line 32 
Line 32 
         .name = "move-window",          .name = "move-window",
         .alias = "movew",          .alias = "movew",
   
         .args = { "adkrs:t:", 0, 0 },          .args = { "abdkrs:t:", 0, 0 },
         .usage = "[-dkr] " CMD_SRCDST_WINDOW_USAGE,          .usage = "[-abdkr] " CMD_SRCDST_WINDOW_USAGE,
   
         .source = { 's', CMD_FIND_WINDOW, 0 },          .source = { 's', CMD_FIND_WINDOW, 0 },
         /* -t is special */          /* -t is special */
Line 46 
Line 46 
         .name = "link-window",          .name = "link-window",
         .alias = "linkw",          .alias = "linkw",
   
         .args = { "adks:t:", 0, 0 },          .args = { "abdks:t:", 0, 0 },
         .usage = "[-dk] " CMD_SRCDST_WINDOW_USAGE,          .usage = "[-abdk] " CMD_SRCDST_WINDOW_USAGE,
   
         .source = { 's', CMD_FIND_WINDOW, 0 },          .source = { 's', CMD_FIND_WINDOW, 0 },
         /* -t is special */          /* -t is special */
Line 67 
Line 67 
         struct session          *dst;          struct session          *dst;
         struct winlink          *wl = source->wl;          struct winlink          *wl = source->wl;
         char                    *cause;          char                    *cause;
         int                      idx, kflag, dflag, sflag;          int                      idx, kflag, dflag, sflag, before;
   
         if (args_has(args, 'r')) {          if (args_has(args, 'r')) {
                 if (cmd_find_target(&target, item, tflag, CMD_FIND_SESSION,                  if (cmd_find_target(&target, item, tflag, CMD_FIND_SESSION,
Line 90 
Line 90 
         dflag = args_has(args, 'd');          dflag = args_has(args, 'd');
         sflag = args_has(args, 's');          sflag = args_has(args, 's');
   
         if (args_has(args, 'a')) {          before = args_has(args, 'b');
           if (args_has(args, 'a') || before) {
                 if (target.wl != NULL)                  if (target.wl != NULL)
                         idx = winlink_shuffle_up(dst, target.wl);                          idx = winlink_shuffle_up(dst, target.wl, before);
                 else                  else
                         idx = winlink_shuffle_up(dst, dst->curw);                          idx = winlink_shuffle_up(dst, dst->curw, before);
                 if (idx == -1)                  if (idx == -1)
                         return (CMD_RETURN_ERROR);                          return (CMD_RETURN_ERROR);
         }          }

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33