From 6cfc2ea38f7dd40f123212cae6a1e7a8db75e2b6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 3 Dec 2025 12:50:29 +0530 Subject: [PATCH] Raise max number of lines to scan for continued URL to 20 Fixes #9264 --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index f3ef7b6a0..3d7a17c11 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -4011,7 +4011,7 @@ extend_url(Screen *screen, Line *line, index_type *x, index_type *y, char_type s unsigned int count = 0; bool has_newline = false; index_type orig_y = *y; - while (count++ < 10) { + while (count++ < 20) { bool in_hostname = last_hostname_char_pos >= line->xnum; has_newline = !line->cpu_cells[line->xnum-1].next_char_was_wrapped; if (next_char_pos(line, *x, 1) < line->xnum || (!newlines_allowed && has_newline)) break;