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

Diff for /src/usr.bin/tmux/cmd-swap-pane.c between version 1.1 and 1.2

version 1.1, 2009/06/01 22:58:49 version 1.2, 2009/06/03 07:51:24
Line 158 
Line 158 
         struct window                   *w;          struct window                   *w;
         struct window_pane              *tmp_wp, *src_wp, *dst_wp;          struct window_pane              *tmp_wp, *src_wp, *dst_wp;
         u_int                            xx, yy;          u_int                            xx, yy;
           int                              flags;
   
         if (data == NULL)          if (data == NULL)
                 return (0);                  return (0);
Line 209 
Line 210 
   
         xx = src_wp->xoff;          xx = src_wp->xoff;
         yy = src_wp->yoff;          yy = src_wp->yoff;
           flags = src_wp->flags;
         src_wp->xoff = dst_wp->xoff;          src_wp->xoff = dst_wp->xoff;
         src_wp->yoff = dst_wp->yoff;          src_wp->yoff = dst_wp->yoff;
           src_wp->flags &= ~PANE_HIDDEN;
           src_wp->flags |= dst_wp->flags & PANE_HIDDEN;
         dst_wp->xoff = xx;          dst_wp->xoff = xx;
         dst_wp->yoff = yy;          dst_wp->yoff = yy;
           dst_wp->flags &= ~PANE_HIDDEN;
           dst_wp->flags |= flags & PANE_HIDDEN;
   
         xx = src_wp->sx;          xx = src_wp->sx;
         yy = src_wp->sy;          yy = src_wp->sy;
Line 220 
Line 226 
         window_pane_resize(dst_wp, xx, yy);          window_pane_resize(dst_wp, xx, yy);
   
         if (!data->flag_detached) {          if (!data->flag_detached) {
                 window_set_active_pane(w, dst_wp);                  tmp_wp = dst_wp;
                   if (tmp_wp->flags & PANE_HIDDEN)
                           tmp_wp = src_wp;
                   window_set_active_pane(w, tmp_wp);
                 layout_refresh(w, 0);                  layout_refresh(w, 0);
         }          }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2