From ebeee7232183fb9aa2388cee064dff973248ed7d Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 23 Feb 2026 19:04:55 +0530 Subject: [PATCH] Fix #9549 --- kitty/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/screen.c b/kitty/screen.c index 1857d5181..2a8c30863 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -3979,7 +3979,7 @@ static hyperlink_id_type hyperlink_id_for_range(Screen *self, const Selection *sel) { IterationData idata; iteration_data(sel, &idata, self->columns, -self->historybuf->count, 0); - for (int i = 0, y = idata.y; y < idata.y_limit && y < (int)self->lines; y++, i++) { + for (int y = idata.y; y < idata.y_limit && y < (int)self->lines; y++) { Line *line = range_line_(self, y); XRange xr = xrange_for_iteration(&idata, y, line); for (index_type x = xr.x; x < xr.x_limit; x++) {