Eina_Bool redraw : 1;
Eina_Bool changed : 1;
+ Eina_Bool pause_change : 1;
Eina_Bool obstacle_changed : 1;
Eina_Bool content_changed : 1;
Eina_Bool format_changed : 1;
Evas_Object_Protected_Data *obj = efl_data_scope_get(eo_obj, EFL_CANVAS_OBJECT_CLASS);
evas_object_async_block(obj);
TB_HEAD();
+
+ /* Stop calls for _evas_textblock_changed for each cursor_text_append or cursor_format_append
+ * this should be done once, when markup_prepend finished */
+ o->pause_change = EINA_TRUE;
if (text)
{
char *s, *p;
p++;
}
}
+ o->pause_change = EINA_FALSE;
_evas_textblock_changed(o, eo_obj);
}
/* Update all the cursors after our position. */
_evas_textblock_cursors_update_offset(cur, cur->node, cur->pos, len);
- _evas_textblock_changed(o, cur->obj);
+ if (!o->pause_change)
+ _evas_textblock_changed(o, cur->obj);
n->dirty = EINA_TRUE;
free(text);
o->format_changed = EINA_TRUE;
}
- _evas_textblock_changed(o, cur->obj);
+ if (!o->pause_change)
+ _evas_textblock_changed(o, cur->obj);
Efl_Text_Cursor_Cursor *ocur = o->cursor;
if (!ocur->node)