diff --git a/render.c b/render.c index 37e7a80f..4103be5c 100644 --- a/render.c +++ b/render.c @@ -420,8 +420,9 @@ draw_styled_underline(const struct terminal *term, pixman_image_t *pix, case UNDERLINE_NONE: case UNDERLINE_SINGLE: - BUG("underline styles not supposed to be handled here"); - break; + default: + BUG("unexpected underline style: %d", (int)style); + return; } const int ceil_w = cols * term->cell_width;