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

Diff for /src/usr.bin/tmux/grid-view.c between version 1.20 and 1.21

version 1.20, 2014/12/01 22:22:14 version 1.21, 2015/01/06 21:14:42
Line 184 
Line 184 
         px = grid_view_x(gd, px);          px = grid_view_x(gd, px);
         py = grid_view_y(gd, py);          py = grid_view_y(gd, py);
   
         if (gd->linedata[py].cellsize + nx < gd->sx)          sx = grid_view_x(gd, gd->sx);
                 sx = grid_view_x(gd, gd->linedata[py].cellsize + nx);  
         else  
                 sx = grid_view_x(gd, gd->sx);  
   
         if (px == sx - 1)          if (px == sx - 1)
                 grid_clear(gd, px, py, 1, 1);                  grid_clear(gd, px, py, 1, 1);
Line 204 
Line 201 
         px = grid_view_x(gd, px);          px = grid_view_x(gd, px);
         py = grid_view_y(gd, py);          py = grid_view_y(gd, py);
   
         sx = grid_view_x(gd, gd->linedata[py].cellsize);          sx = grid_view_x(gd, gd->sx);
         if (sx < px + nx)  
                 sx = px + nx;  
   
         grid_move_cells(gd, px, px + nx, py, sx - px - nx);          grid_move_cells(gd, px, px + nx, py, sx - px - nx);
         grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1);          grid_clear(gd, sx - nx, py, px + nx - (sx - nx), 1);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21