| 55 | }; |
| 56 | |
| 57 | static const char *color(int slot, struct wt_status *s) |
| 58 | { |
| 59 | const char *c = ""; |
| 60 | if (want_color(s->use_color)) |
| 61 | c = s->color_palette[slot]; |
| 62 | if (slot == WT_STATUS_ONBRANCH && color_is_nil(c)) |
| 63 | c = s->color_palette[WT_STATUS_HEADER]; |
| 64 | return c; |
| 65 | } |
| 66 | |
| 67 | static void status_vprintf(struct wt_status *s, int at_bol, const char *color, |
| 68 | const char *fmt, va_list ap, const char *trail) |
no test coverage detected