[BACK]Return to layout.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / tmux

Diff for /src/usr.bin/tmux/layout.c between version 1.40 and 1.41

version 1.40, 2019/04/17 14:37:48 version 1.41, 2019/04/17 14:43:49
Line 479 
Line 479 
          * out proportionately - this should leave the layout fitting the new           * out proportionately - this should leave the layout fitting the new
          * window size.           * window size.
          */           */
         xchange = sx - w->sx;          xchange = sx - lc->sx;
         xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT);          xlimit = layout_resize_check(w, lc, LAYOUT_LEFTRIGHT);
         if (xchange < 0 && xchange < -xlimit)          if (xchange < 0 && xchange < -xlimit)
                 xchange = -xlimit;                  xchange = -xlimit;
Line 493 
Line 493 
                 layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange);                  layout_resize_adjust(w, lc, LAYOUT_LEFTRIGHT, xchange);
   
         /* Adjust vertically in a similar fashion. */          /* Adjust vertically in a similar fashion. */
         ychange = sy - w->sy;          ychange = sy - lc->sy;
         ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM);          ylimit = layout_resize_check(w, lc, LAYOUT_TOPBOTTOM);
         if (ychange < 0 && ychange < -ylimit)          if (ychange < 0 && ychange < -ylimit)
                 ychange = -ylimit;                  ychange = -ylimit;

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41