fix link detection on links starting at first char of the screen.

Closes T2438
This commit is contained in:
Boris Faure 2015-05-27 22:28:06 +02:00
parent f2239735ab
commit 16c184a9d2
1 changed files with 9 additions and 6 deletions

View File

@ -137,13 +137,16 @@ _termio_link_find(Evas_Object *obj, int cx, int cy,
case '{': endmatch = '}'; break;
case '(': endmatch = ')'; break;
}
coord_forward(&x1, &y1, w, h);
if (!(x1 == 0 && y1 == 0))
{
coord_forward(&x1, &y1, w, h);
free(s);
prev_len = len;
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc,
&len, EINA_FALSE);
if (!s) break;
free(s);
prev_len = len;
s = termio_selection_get(obj, x1, y1 - sc, x2, y2 - sc,
&len, EINA_FALSE);
if (!s) break;
}
}
else
{