hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=de98785cc4aa38a6e0c3db6918ae845646d30f91
commit de98785cc4aa38a6e0c3db6918ae845646d30f91 Author: Mykyta Biliavskyi <m.biliavs...@samsung.com> Date: Thu Aug 7 15:36:45 2014 +0900 redoundo: fix cursor position after redo action. Summary: cursor set after inserted symbol(or string) and shifted left after delete. @fix Reviewers: Hermet Reviewed By: Hermet Projects: #enventor Differential Revision: https://phab.enlightenment.org/D1284 --- src/bin/redoundo.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/redoundo.c b/src/bin/redoundo.c index 045f87e..88e6bd5 100644 --- a/src/bin/redoundo.c +++ b/src/bin/redoundo.c @@ -197,6 +197,7 @@ redoundo_redo(redoundo_data *rd, Eina_Bool *changed) evas_object_textblock_text_markup_prepend(rd->cursor, diff->text); lines = parser_line_cnt_get(NULL, diff->text); + elm_entry_cursor_pos_set(rd->entry, (diff->cursor_pos + diff->length)); } //Remove else @@ -219,10 +220,10 @@ redoundo_redo(redoundo_data *rd, Eina_Bool *changed) evas_textblock_cursor_free(cursor); } lines = -parser_line_cnt_get(NULL, diff->text); + elm_entry_cursor_pos_set(rd->entry, diff->cursor_pos); } rd->internal_change = EINA_FALSE; - elm_entry_cursor_pos_set(rd->entry, (diff->cursor_pos + diff->length)); rd->last_diff = diff; rd->current_node = next; --