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

Diff for /src/usr.bin/tmux/window-buffer.c between version 1.24 and 1.25

version 1.24, 2019/12/13 09:15:13 version 1.25, 2020/02/11 07:01:09
Line 210 
Line 210 
         struct paste_buffer             *pb;          struct paste_buffer             *pb;
         const char                      *pdata, *start, *end;          const char                      *pdata, *start, *end;
         char                            *buf = NULL;          char                            *buf = NULL;
         size_t                           psize, len;          size_t                           psize;
         u_int                            i, cx = ctx->s->cx, cy = ctx->s->cy;          u_int                            i, cx = ctx->s->cx, cy = ctx->s->cy;
   
         pb = paste_get_name(item->name);          pb = paste_get_name(item->name);
Line 223 
Line 223 
                 while (end != pdata + psize && *end != '\n')                  while (end != pdata + psize && *end != '\n')
                         end++;                          end++;
                 buf = xreallocarray(buf, 4, end - start + 1);                  buf = xreallocarray(buf, 4, end - start + 1);
                 len = utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB);                  utf8_strvis(buf, start, end - start, VIS_OCTAL|VIS_TAB);
                 if (*buf != '\0') {                  if (*buf != '\0') {
                         screen_write_cursormove(ctx, cx, cy + i, 0);                          screen_write_cursormove(ctx, cx, cy + i, 0);
                         screen_write_nputs(ctx, sx, &grid_default_cell, "%s",                          screen_write_nputs(ctx, sx, &grid_default_cell, "%s",

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25