> +        snprintf (fmt, sizeof (fmt), "%%%sc", prefix);
> +        snprintf (dest, destlen, fmt, b->new ? 'N' : ' ');

I'd have gone for a string, myself, as it's slightly more flexible.
(The new sidebar_format wouldn't need to change)

    snprintf (fmt, sizeof (fmt), "%%%ss", prefix);
    snprintf (dest, destlen, fmt, b->new ? "N" : "");

Giving:
    fixed width: %1n
    collapsing:  %n  (e.g. to combine with other flags)

Rich

Reply via email to