1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-07-26 16:45:12 -04:00

[dump] Small optimisation. Refs #198

This commit is contained in:
Witold Filipczyk 2022-11-27 19:51:59 +01:00
parent 8ac424f01b
commit 8e619e4d02

View File

@ -221,6 +221,10 @@ is_start_of_link(struct document *document, int x, int y, int *current_link_numb
*ret = link;
return 1;
}
if (link->points[0].y > y) {
break;
}
}
return 0;
}
@ -238,6 +242,10 @@ is_end_of_link(struct document *document, int x, int y, int *current_link_number
*ret = link;
return 1;
}
if (link->points[0].y > y) {
break;
}
}
return 0;
}