From 2c454a71f14da912f5623336b93ec8f48f2d1cf9 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 6 Apr 2026 15:47:26 +0200 Subject: config: add url.style=none|single|double|curly|dotted|dashed This option allows you to configure which underline style to use with URLs. The default is dotted. Since before this patch, URL underlines were always plain underlines, this means the default URL underline style has changed, from single to dotted. Closes #2302 --- render.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index c47133b3..f74e9251 100644 --- a/render.c +++ b/render.c @@ -1171,13 +1171,16 @@ render_cell(struct terminal *term, pixman_image_t *pix, if (cell->attrs.strikethrough) draw_strikeout(term, pix, font, &fg, x, y, cell_cols); - if (unlikely(cell->attrs.url)) { + if (unlikely(cell->attrs.url && term->conf->url.style != UNDERLINE_NONE)) { pixman_color_t url_color = color_hex_to_pixman( term->conf->colors_dark.use_custom.url ? term->conf->colors_dark.url : term->colors.table[3], gamma_correct); - draw_underline(term, pix, font, &url_color, x, y, cell_cols); + + draw_styled_underline( + term, pix, font, &url_color, term->conf->url.style, + x, y, cell_cols); } draw_cursor: -- cgit v1.3