Entry *en = NULL;
const char *str;
char *plain_text;
- Eina_Strbuf *buf = NULL;
if (!rp) return EINA_FALSE;
if ((rp->type != EDJE_RP_TYPE_TEXT) ||
if (plain_text)
{
- if (en->have_selection)
- {
- buf = eina_strbuf_new();
-
- if (en->sel_start)
- eina_strbuf_append_n(buf, plain_text, evas_textblock_cursor_pos_get(en->sel_start));
- else
- eina_strbuf_append(buf, plain_text);
-
- *text = strdup(eina_strbuf_string_get(buf));
- eina_strbuf_free(buf);
- }
- else
- *text = strdup(plain_text);
+ *text = strdup(plain_text);
free(plain_text);
plain_text = NULL;
if (cursor_pos)
{
- if (en->have_selection && en->sel_start)
- *cursor_pos = evas_textblock_cursor_pos_get(en->sel_start);
- else if (en->cursor)
+ if (en->cursor)
*cursor_pos = evas_textblock_cursor_pos_get(en->cursor);
else
*cursor_pos = 0;