[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.54 and 1.55

version 1.54, 2019/03/20 19:19:11 version 1.55, 2019/04/02 08:45:32
Line 464 
Line 464 
 static void  static void
 screen_reflow(struct screen *s, u_int new_x)  screen_reflow(struct screen *s, u_int new_x)
 {  {
         u_int           offset, cx = s->cx, cy = s->grid->hsize + s->cy;          u_int           cx = s->cx, cy = s->grid->hsize + s->cy, wx, wy;
         struct timeval  start, tv;          struct timeval  start, tv;
   
         gettimeofday(&start, NULL);          gettimeofday(&start, NULL);
   
         offset = grid_to_offset(s->grid, cx, cy);          grid_wrap_position(s->grid, cx, cy, &wx, &wy);
         log_debug("%s: cursor %u,%u offset is %u", __func__, cx, cy, offset);          log_debug("%s: cursor %u,%u is %u,%u", __func__, cx, cy, wx, wy);
   
         grid_reflow(s->grid, new_x);          grid_reflow(s->grid, new_x);
   
         grid_from_offset(s->grid, offset, &cx, &cy);          grid_unwrap_position(s->grid, &cx, &cy, wx, wy);
         log_debug("%s: new cursor is %u,%u", __func__, cx, cy);          log_debug("%s: new cursor is %u,%u", __func__, cx, cy);
   
         if (cy >= s->grid->hsize) {          if (cy >= s->grid->hsize) {

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55