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

Diff for /src/usr.bin/tmux/cmd-rotate-window.c between version 1.26 and 1.27

version 1.26, 2019/04/17 14:37:48 version 1.27, 2019/08/14 09:58:31
Line 31 
Line 31 
         .name = "rotate-window",          .name = "rotate-window",
         .alias = "rotatew",          .alias = "rotatew",
   
         .args = { "Dt:U", 0, 0 },          .args = { "Dt:UZ", 0, 0 },
         .usage = "[-DU] " CMD_TARGET_WINDOW_USAGE,          .usage = "[-DUZ] " CMD_TARGET_WINDOW_USAGE,
   
         .target = { 't', CMD_FIND_WINDOW, 0 },          .target = { 't', CMD_FIND_WINDOW, 0 },
   
Line 50 
Line 50 
         struct layout_cell      *lc;          struct layout_cell      *lc;
         u_int                    sx, sy, xoff, yoff;          u_int                    sx, sy, xoff, yoff;
   
         server_unzoom_window(w);          window_push_zoom(w, args_has(self->args, 'Z'));
   
         if (args_has(self->args, 'D')) {          if (args_has(self->args, 'D')) {
                 wp = TAILQ_LAST(&w->panes, window_panes);                  wp = TAILQ_LAST(&w->panes, window_panes);
Line 77 
Line 77 
   
                 if ((wp = TAILQ_PREV(w->active, window_panes, entry)) == NULL)                  if ((wp = TAILQ_PREV(w->active, window_panes, entry)) == NULL)
                         wp = TAILQ_LAST(&w->panes, window_panes);                          wp = TAILQ_LAST(&w->panes, window_panes);
                 window_set_active_pane(w, wp, 1);  
                 cmd_find_from_winlink_pane(current, wl, wp, 0);  
                 server_redraw_window(w);  
         } else {          } else {
                 wp = TAILQ_FIRST(&w->panes);                  wp = TAILQ_FIRST(&w->panes);
                 TAILQ_REMOVE(&w->panes, wp, entry);                  TAILQ_REMOVE(&w->panes, wp, entry);
Line 105 
Line 102 
   
                 if ((wp = TAILQ_NEXT(w->active, entry)) == NULL)                  if ((wp = TAILQ_NEXT(w->active, entry)) == NULL)
                         wp = TAILQ_FIRST(&w->panes);                          wp = TAILQ_FIRST(&w->panes);
                 window_set_active_pane(w, wp, 1);  
                 cmd_find_from_winlink_pane(current, wl, wp, 0);  
                 server_redraw_window(w);  
         }          }
   
           window_set_active_pane(w, wp, 1);
           cmd_find_from_winlink_pane(current, wl, wp, 0);
           window_pop_zoom(w);
           server_redraw_window(w);
   
         return (CMD_RETURN_NORMAL);          return (CMD_RETURN_NORMAL);
 }  }

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27