git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@56020
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
cur->node = n;
cur->pos = pos;
}
- else
+ else if (o->text_nodes)
{
+ /* In case we went pass the last node, we need to put the cursor
+ * at the absolute end. */
Evas_Object_Textblock_Node_Text *last_n;
last_n = _NODE_TEXT(EINA_INLIST_GET(o->text_nodes)->last);
- cur->node = last_n;
- cur->pos = 0;
+ pos = eina_ustrbuf_length_get(last_n->unicode);
- evas_textblock_cursor_paragraph_char_last(cur);
+ cur->node = last_n;
+ cur->pos = pos;
}
}