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

Diff for /src/usr.bin/tmux/screen-write.c between version 1.6 and 1.7

version 1.6, 2009/06/03 23:37:30 version 1.7, 2009/06/05 03:13:16
Line 89 
Line 89 
                         size++;                          size++;
                         ptr++;                          ptr++;
                 }                  }
         }          }
   
         return (size);          return (size);
 }  }
Line 148 
Line 148 
                                 *utf8buf = *ptr;                                  *utf8buf = *ptr;
                                 ptr++;                                  ptr++;
                         }                          }
   
                         width = utf8_width(utf8buf);                          width = utf8_width(utf8buf);
                         if (maxlen > 0 && size + width > (size_t) maxlen) {                          if (maxlen > 0 && size + width > (size_t) maxlen) {
                                 while (size < (size_t) maxlen) {                                  while (size < (size_t) maxlen) {
Line 301 
Line 301 
   
         memcpy(&gc, &grid_default_cell, sizeof gc);          memcpy(&gc, &grid_default_cell, sizeof gc);
         gc.data = 'E';          gc.data = 'E';
   
         for (yy = 0; yy < screen_size_y(s); yy++) {          for (yy = 0; yy < screen_size_y(s); yy++) {
                 for (xx = 0; xx < screen_size_x(s); xx++)                  for (xx = 0; xx < screen_size_x(s); xx++)
                         grid_view_set_cell(s->grid, xx, yy, &gc);                          grid_view_set_cell(s->grid, xx, yy, &gc);
         }          }
   
         s->cx = 0;          s->cx = 0;
         s->cy = 0;          s->cy = 0;
   

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7