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

Diff for /src/usr.bin/tmux/grid.c between version 1.35 and 1.36

version 1.35, 2014/02/14 13:59:01 version 1.36, 2014/03/31 21:42:27
Line 151 
Line 151 
 {  {
         u_int   yy;          u_int   yy;
   
         GRID_DEBUG(gd, "");  
   
         if (gd->hsize < gd->hlimit)          if (gd->hsize < gd->hlimit)
                 return;                  return;
   
Line 173 
Line 171 
 {  {
         u_int   yy;          u_int   yy;
   
         GRID_DEBUG(gd, "");  
   
         yy = gd->hsize + gd->sy;          yy = gd->hsize + gd->sy;
         gd->linedata = xrealloc(gd->linedata, yy + 1, sizeof *gd->linedata);          gd->linedata = xrealloc(gd->linedata, yy + 1, sizeof *gd->linedata);
         memset(&gd->linedata[yy], 0, sizeof gd->linedata[yy]);          memset(&gd->linedata[yy], 0, sizeof gd->linedata[yy]);
Line 189 
Line 185 
         struct grid_line        *gl_history, *gl_upper, *gl_lower;          struct grid_line        *gl_history, *gl_upper, *gl_lower;
         u_int                    yy;          u_int                    yy;
   
         GRID_DEBUG(gd, "upper=%u, lower=%u", upper, lower);  
   
         /* Create a space for a new line. */          /* Create a space for a new line. */
         yy = gd->hsize + gd->sy;          yy = gd->hsize + gd->sy;
         gd->linedata = xrealloc(gd->linedata, yy + 1, sizeof *gd->linedata);          gd->linedata = xrealloc(gd->linedata, yy + 1, sizeof *gd->linedata);
Line 282 
Line 276 
 {  {
         u_int   xx, yy;          u_int   xx, yy;
   
         GRID_DEBUG(gd, "px=%u, py=%u, nx=%u, ny=%u", px, py, nx, ny);  
   
         if (nx == 0 || ny == 0)          if (nx == 0 || ny == 0)
                 return;                  return;
   
Line 319 
Line 311 
         struct grid_line        *gl;          struct grid_line        *gl;
         u_int                    yy;          u_int                    yy;
   
         GRID_DEBUG(gd, "py=%u, ny=%u", py, ny);  
   
         if (ny == 0)          if (ny == 0)
                 return;                  return;
   
Line 342 
Line 332 
 {  {
         u_int   yy;          u_int   yy;
   
         GRID_DEBUG(gd, "dy=%u, py=%u, ny=%u", dy, py, ny);  
   
         if (ny == 0 || py == dy)          if (ny == 0 || py == dy)
                 return;                  return;
   
Line 381 
Line 369 
         struct grid_line        *gl;          struct grid_line        *gl;
         u_int                    xx;          u_int                    xx;
   
         GRID_DEBUG(gd, "dx=%u, px=%u, py=%u, nx=%u", dx, px, py, nx);  
   
         if (nx == 0 || px == dx)          if (nx == 0 || px == dx)
                 return;                  return;
   
Line 592 
Line 578 
         u_int                    xx;          u_int                    xx;
         const struct grid_line  *gl;          const struct grid_line  *gl;
   
         GRID_DEBUG(gd, "px=%u, py=%u, nx=%u", px, py, nx);  
   
         if (lastgc != NULL && *lastgc == NULL) {          if (lastgc != NULL && *lastgc == NULL) {
                 memcpy(&lastgc1, &grid_default_cell, sizeof lastgc1);                  memcpy(&lastgc1, &grid_default_cell, sizeof lastgc1);
                 *lastgc = &lastgc1;                  *lastgc = &lastgc1;
Line 660 
Line 644 
 {  {
         struct grid_line        *dstl, *srcl;          struct grid_line        *dstl, *srcl;
         u_int                    yy;          u_int                    yy;
   
         GRID_DEBUG(src, "dy=%u, sy=%u, ny=%u", dy, sy, ny);  
   
         if (dy + ny > dst->hsize + dst->sy)          if (dy + ny > dst->hsize + dst->sy)
                 ny = dst->hsize + dst->sy - dy;                  ny = dst->hsize + dst->sy - dy;

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36