itn = (Evas_Object_Textblock_Item *)(((Eina_Inlist *)it)->next);
p = (int)(it->source_pos + eina_unicode_strlen(it->text));
- /*FIXME: Bad, this sholud be > pos */
- if ((p >= pos) ||
+ if ((p > pos) ||
((p == pos) && (!lnn) &&
- ((!itn) |
+ ((!itn) ||
((itn) && (itn->source_node != n)))))
{
*lnr = ln;
cur->node = it->source_node;
index = eina_unicode_strlen(it->text) - 1;
if (index < 0) index = 0;
- if ((index >= 0) && (it->text[0] != 0))
- GET_NEXT(it->text, index);
+ if (index >= 0) GET_NEXT(it->text, index);
if (index >= 0) cur->pos += index;
}
else if (fi)