[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.89 and 1.90

version 1.89, 2019/03/12 23:21:45 version 1.90, 2019/03/18 15:25:36
Line 481 
Line 481 
 grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc)  grid_get_cell(struct grid *gd, u_int px, u_int py, struct grid_cell *gc)
 {  {
         if (grid_check_y(gd, __func__, py) != 0 ||          if (grid_check_y(gd, __func__, py) != 0 ||
             px >= gd->linedata[py].cellsize) {              px >= gd->linedata[py].cellsize)
                 memcpy(gc, &grid_default_cell, sizeof *gc);                  memcpy(gc, &grid_default_cell, sizeof *gc);
                 return;          else
         }                  grid_get_cell1(&gd->linedata[py], px, gc);
         return (grid_get_cell1(&gd->linedata[py], px, gc));  
 }  }
   
 /* Set cell at relative position. */  /* Set cell at relative position. */

Legend:
Removed from v.1.89  
changed lines
  Added in v.1.90