diff --git a/extract.c b/extract.c index 8ae0489a..5b5b5ebc 100644 --- a/extract.c +++ b/extract.c @@ -390,6 +390,10 @@ add_rich_diff(struct extraction_context *ctx, struct attributes attrs, const str ctx->buf[ctx->idx++] = U'4'; ctx->buf[ctx->idx++] = U':'; ctx->buf[ctx->idx++] = U'1'; + + ctx->underline_style = 0; + ctx->un = 0; + ctx->un_src = 0; } } else { if (!init_x1b(&x1b, ctx))