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

Diff for /src/usr.bin/tmux/paste.c between version 1.2 and 1.3

version 1.2, 2009/07/02 16:15:43 version 1.3, 2009/07/30 20:50:54
Line 104 
Line 104 
         if (*data == '\0')          if (*data == '\0')
                 return;                  return;
   
         while (ARRAY_LENGTH(ps) >= limit)          while (ARRAY_LENGTH(ps) >= limit) {
                   pb = ARRAY_LAST(ps);
                   xfree(pb->data);
                   xfree(pb);
                 ARRAY_TRUNC(ps, 1);                  ARRAY_TRUNC(ps, 1);
           }
   
         pb = xmalloc(sizeof *pb);          pb = xmalloc(sizeof *pb);
         ARRAY_INSERT(ps, 0, pb);          ARRAY_INSERT(ps, 0, pb);

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3