This commit is contained in:
Kovid Goyal 2026-02-23 19:04:55 +05:30
parent 8df80afa79
commit ebeee72321
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -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++) {