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

Diff for /src/usr.bin/tmux/screen.c between version 1.50 and 1.51

version 1.50, 2017/11/15 19:21:24 version 1.51, 2018/07/04 09:44:07
Line 281 
Line 281 
                 s->cy -= needed;                  s->cy -= needed;
         }          }
   
         /* Resize line arrays. */          /* Resize line array. */
         gd->linedata = xreallocarray(gd->linedata, gd->hsize + sy,          grid_adjust_lines(gd, gd->hsize + sy);
             sizeof *gd->linedata);  
   
         /* Size increasing. */          /* Size increasing. */
         if (sy > oldy) {          if (sy > oldy) {
Line 306 
Line 305 
   
                 /* Then fill the rest in with blanks. */                  /* Then fill the rest in with blanks. */
                 for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++)                  for (i = gd->hsize + sy - needed; i < gd->hsize + sy; i++)
                         memset(&gd->linedata[i], 0, sizeof gd->linedata[i]);                          memset(grid_get_line(gd, i), 0, sizeof(struct grid_line));
         }          }
   
         /* Set the new size, and reset the scroll region. */          /* Set the new size, and reset the scroll region. */

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51