forked from enlightenment/efl
Evas textblock: fixed in issue with the return value of evas_textblock_cursor_char_next which wasn't always correct.
SVN revision: 56295
This commit is contained in:
parent
45652e5da5
commit
80b71b0a05
|
@ -4608,12 +4608,17 @@ evas_textblock_cursor_char_next(Evas_Textblock_Cursor *cur)
|
||||||
{
|
{
|
||||||
if (!evas_textblock_cursor_paragraph_next(cur))
|
if (!evas_textblock_cursor_paragraph_next(cur))
|
||||||
{
|
{
|
||||||
|
/* If we already were at the end, that means we don't have
|
||||||
|
* where to go next we should return FALSE */
|
||||||
|
if (cur->pos == (size_t) index)
|
||||||
|
return EINA_FALSE;
|
||||||
|
|
||||||
cur->pos = index;
|
cur->pos = index;
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return EINA_FALSE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue