mirror of
https://github.com/rkd77/elinks.git
synced 2025-02-02 15:09:23 -05:00
[dump] Small optimisation. Refs #198
This commit is contained in:
parent
8ac424f01b
commit
8e619e4d02
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user