termiolink: minor optimization

This commit is contained in:
Boris Faure 2013-06-04 23:08:05 +02:00
parent 21cd9d5cec
commit ba9467d780
1 changed files with 1 additions and 1 deletions

View File

@ -107,8 +107,8 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
x1 = x2 = cx;
y1 = y2 = cy;
termio_size_get(obj, &w, &h);
sc = termio_scroll_get(obj);
if ((w <= 0) || (h <= 0)) return NULL;
sc = termio_scroll_get(obj);
for (;;)
{
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc, &len);