jaehyun pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=bf5e38298dc4fcdeef155b6a8dc46c7465231608
commit bf5e38298dc4fcdeef155b6a8dc46c7465231608 Author: taehyub <taehyub....@samsung.com> Date: Tue Feb 2 17:44:12 2016 +0900 edc_editor: fix bracket updateto be called one time Summary: fix bracket update callback to be called one time Reviewers: Hermet, Jaehyun_Cho Reviewed By: Jaehyun_Cho Differential Revision: https://phab.enlightenment.org/D3637 --- src/lib/edc_editor.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/edc_editor.c b/src/lib/edc_editor.c index 5ecb5ba..22870b3 100644 --- a/src/lib/edc_editor.c +++ b/src/lib/edc_editor.c @@ -38,6 +38,7 @@ struct editor_s int line_max; int error_line; int syntax_color_lock; + int cursor_pos; Evas_Coord scroller_h; struct { @@ -328,8 +329,14 @@ static void bracket_update(edit_data *ed) { int pos = elm_entry_cursor_pos_get(ed->en_edit); - if (pos == 0) return; + if (pos == 0) + { + ed->cursor_pos = 0; + return; + } + if (pos == ed->cursor_pos) return; + ed->cursor_pos = pos; Evas_Object *tb = elm_entry_textblock_get(ed->en_edit); Evas_Textblock_Cursor *cur1 = evas_object_textblock_cursor_get(tb); --