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

Diff for /src/usr.bin/tmux/layout-set.c between version 1.3 and 1.4

version 1.3, 2009/07/28 06:48:44 version 1.4, 2009/12/03 22:50:10
Line 295 
Line 295 
                         continue;                          continue;
                 }                  }
   
                 /* Add in the columns. */                  /* Add in the columns. */
                 layout_make_node(lcrow, LAYOUT_LEFTRIGHT);                  layout_make_node(lcrow, LAYOUT_LEFTRIGHT);
                 for (i = 0; i < columns; i++) {                  for (i = 0; i < columns; i++) {
                         /* Create and add a pane cell. */                          /* Create and add a pane cell. */
Line 312 
Line 312 
                 /* Adjust the row to fit the full width if necessary. */                  /* Adjust the row to fit the full width if necessary. */
                 if (i == columns)                  if (i == columns)
                         i--;                          i--;
                 used = ((i + 1) * width) - 1;                  used = ((i + 1) * width) - 1;
                 if (w->sx <= used)                  if (w->sx <= used)
                         continue;                          continue;
                 lcchild = TAILQ_LAST(&lcrow->cells, layout_cells);                  lcchild = TAILQ_LAST(&lcrow->cells, layout_cells);
                 layout_resize_adjust(lcchild, LAYOUT_LEFTRIGHT, w->sx - used);                  layout_resize_adjust(lcchild, LAYOUT_LEFTRIGHT, w->sx - used);
         }          }
   
         /* Adjust the last row height to fit if necessary. */          /* Adjust the last row height to fit if necessary. */
Line 422 
Line 422 
                 if (i == rows)                  if (i == rows)
                         i--;                          i--;
                 used = ((i + 1) * height) - 1;                  used = ((i + 1) * height) - 1;
                 if (w->sy <= used)                  if (w->sy <= used)
                         continue;                          continue;
                 lcchild = TAILQ_LAST(&lccolumn->cells, layout_cells);                  lcchild = TAILQ_LAST(&lccolumn->cells, layout_cells);
                 layout_resize_adjust(lcchild, LAYOUT_TOPBOTTOM, w->sy - used);                  layout_resize_adjust(lcchild, LAYOUT_TOPBOTTOM, w->sy - used);
         }          }
   
         /* Adjust the last column width to fit if necessary. */          /* Adjust the last column width to fit if necessary. */

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4