[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.8 and 1.9

version 1.8, 2009/12/03 22:50:10 version 1.9, 2011/01/25 23:40:26
Line 74 
Line 74 
         grid_set_utf8(gd, grid_view_x(gd, px), grid_view_y(gd, py), gu);          grid_set_utf8(gd, grid_view_x(gd, px), grid_view_y(gd, py), gu);
 }  }
   
   /* Clear into history. */
   void
   grid_view_clear_history(struct grid *gd)
   {
           struct grid_line        *gl;
           u_int                    yy, last;
   
           GRID_DEBUG(gd, "");
   
           /* Find the last used line. */
           last = 0;
           for (yy = 0; yy < gd->sy; yy++) {
                   gl = &gd->linedata[grid_view_y(gd, yy)];
                   if (gl->cellsize != 0 || gl->utf8size != 0)
                           last = yy + 1;
           }
           if (last == 0)
                   return;
   
           /* Scroll the lines into the history. */
           for (yy = 0; yy < last; yy++)
                   grid_scroll_history(gd);
   }
   
 /* Clear area. */  /* Clear area. */
 void  void
 grid_view_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny)  grid_view_clear(struct grid *gd, u_int px, u_int py, u_int nx, u_int ny)

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9