[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.70 and 1.71

version 1.70, 2017/04/25 18:20:51 version 1.71, 2017/05/12 13:00:56
Line 284 
Line 284 
   
 /* Scroll a region up, moving the top line into the history. */  /* Scroll a region up, moving the top line into the history. */
 void  void
 grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower)  grid_scroll_history_region(struct grid *gd, u_int upper, u_int lower, u_int bg)
 {  {
         struct grid_line        *gl_history, *gl_upper, *gl_lower;          struct grid_line        *gl_history, *gl_upper, *gl_lower;
         u_int                    yy;          u_int                    yy;
Line 309 
Line 309 
   
         /* Then move the region up and clear the bottom line. */          /* Then move the region up and clear the bottom line. */
         memmove(gl_upper, gl_upper + 1, (lower - upper) * sizeof *gl_upper);          memmove(gl_upper, gl_upper + 1, (lower - upper) * sizeof *gl_upper);
         memset(gl_lower, 0, sizeof *gl_lower);          grid_empty_line(gd, lower, bg);
   
         /* Move the history offset down over the line. */          /* Move the history offset down over the line. */
         gd->hscrolled++;          gd->hscrolled++;

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71