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

Diff for /src/usr.bin/tmux/format.c between version 1.306 and 1.307

version 1.306, 2022/06/27 09:14:49 version 1.307, 2022/06/27 09:16:54
Line 4714 
Line 4714 
                                 n++;                                  n++;
                         }                          }
                         if (*ptr == '[') {                          if (*ptr == '[') {
                                   style_end = format_skip(fmt - 2, "]");
                                 format_log(es, "found #*%zu[", n);                                  format_log(es, "found #*%zu[", n);
                                 while (len - off < n + 2) {                                  while (len - off < n + 2) {
                                         buf = xreallocarray(buf, 2, len);                                          buf = xreallocarray(buf, 2, len);
Line 4722 
Line 4723 
                                 memcpy(buf + off, fmt - 2, n + 1);                                  memcpy(buf + off, fmt - 2, n + 1);
                                 off += n + 1;                                  off += n + 1;
                                 fmt = ptr + 1;                                  fmt = ptr + 1;
                                 style_end = format_skip(fmt - 2, "]");  
                                 continue;                                  continue;
                         }                          }
                         /* FALLTHROUGH */                          /* FALLTHROUGH */

Legend:
Removed from v.1.306  
changed lines
  Added in v.1.307