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

Diff for /src/usr.bin/tmux/window-copy.c between version 1.114 and 1.115

version 1.114, 2014/09/01 21:50:18 version 1.115, 2014/10/02 08:36:26
Line 1552 
Line 1552 
         struct grid_line                *gl;          struct grid_line                *gl;
         struct utf8_data                 ud;          struct utf8_data                 ud;
         u_int                            i, xx, wrapped = 0;          u_int                            i, xx, wrapped = 0;
           const char                      *s;
   
         if (sx > ex)          if (sx > ex)
                 return;                  return;
Line 1580 
Line 1581 
                         if (gc->flags & GRID_FLAG_PADDING)                          if (gc->flags & GRID_FLAG_PADDING)
                                 continue;                                  continue;
                         grid_cell_get(gc, &ud);                          grid_cell_get(gc, &ud);
                           if (ud.size == 1 && (gc->attr & GRID_ATTR_CHARSET)) {
                                   s = tty_acs_get(NULL, ud.data[0]);
                                   if (s != NULL && strlen(s) <= sizeof ud.data) {
                                           ud.size = strlen(s);
                                           memcpy (ud.data, s, ud.size);
                                   }
                           }
   
                         *buf = xrealloc(*buf, 1, (*off) + ud.size);                          *buf = xrealloc(*buf, 1, (*off) + ud.size);
                         memcpy(*buf + *off, ud.data, ud.size);                          memcpy(*buf + *off, ud.data, ud.size);

Legend:
Removed from v.1.114  
changed lines
  Added in v.1.115