From aa1267486d07667f9179ae5ab2e82f57cb6d8217 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Jan 2026 10:20:16 +0530 Subject: [PATCH] Only reset hyperlink if starting a new line --- kitty/line.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/line.c b/kitty/line.c index 020cc504b..c81f10a3e 100644 --- a/kitty/line.c +++ b/kitty/line.c @@ -574,7 +574,7 @@ line_as_ansi(Line *self, ANSILineState *s, index_type start_at, index_type stop_ } } if (s->limit <= start_at) { - if (s->output_buf->active_hyperlink_id && !self->cpu_cells[0].hyperlink_id) write_hyperlink_to_ansi_buf(s, 0); + if (s->output_buf->active_hyperlink_id && start_at == 0 && !self->cpu_cells[0].hyperlink_id) write_hyperlink_to_ansi_buf(s, 0); return s->escape_code_written; }