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

Diff for /src/usr.bin/tmux/format-draw.c between version 1.2 and 1.3

version 1.2, 2019/03/18 21:55:04 version 1.3, 2019/03/20 07:13:02
Line 527 
Line 527 
   
         style_set(&sy, base);          style_set(&sy, base);
         TAILQ_INIT(&frs);          TAILQ_INIT(&frs);
           log_debug("%s: %s", __func__, expanded);
   
         /*          /*
          * We build three screens for left, right, centre alignment, one for           * We build three screens for left, right, centre alignment, one for
Line 574 
Line 575 
   
                 /* This is a style. Work out where the end is and parse it. */                  /* This is a style. Work out where the end is and parse it. */
                 end = format_skip(cp + 2, "]");                  end = format_skip(cp + 2, "]");
                 if (end == NULL)                  if (end == NULL) {
                           log_debug("no terminating ] at '%s'", cp + 2);
                         return;                          return;
                   }
                 tmp = xstrndup(cp + 2, end - (cp + 2));                  tmp = xstrndup(cp + 2, end - (cp + 2));
                 if (style_parse(&sy, base, tmp) != 0) {                  if (style_parse(&sy, base, tmp) != 0) {
                           log_debug("invalid style '%s'", tmp);
                         free(tmp);                          free(tmp);
                         return;                          return;
                 }                  }

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