nikawhite pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=d22bfdba37f114db7df1fbf2f9386d7b6227b39b
commit d22bfdba37f114db7df1fbf2f9386d7b6227b39b Author: Mykyta Biliavskyi <[email protected]> Date: Tue Sep 22 10:36:09 2015 +0000 Ctxpopup: block the input values from ctxpopup if it already deleted. When compilation error happens - the currently open ctxpopup will be closed. @fix T2542 --- src/lib/edc_editor.c | 2 ++ src/lib/enventor_smart.c | 1 + 2 files changed, 3 insertions(+) diff --git a/src/lib/edc_editor.c b/src/lib/edc_editor.c index 3d9c64f..66cfb33 100644 --- a/src/lib/edc_editor.c +++ b/src/lib/edc_editor.c @@ -379,6 +379,8 @@ ctxpopup_candidate_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, elm_entry_select_region_set(ed->en_edit, cur_pos, end_pos); + if (!ed->ctxpopup) return; + redoundo_text_relative_push(ed->rd, text); elm_entry_entry_insert(ed->en_edit, text); elm_entry_calc_force(ed->en_edit); diff --git a/src/lib/enventor_smart.c b/src/lib/enventor_smart.c index 604312f..f186dc2 100644 --- a/src/lib/enventor_smart.c +++ b/src/lib/enventor_smart.c @@ -159,6 +159,7 @@ build_err_noti_cb(void *data, const char *msg) call_error: free(utf8); edit_error_set(pd->ed, line_num - 1, target); + edit_ctxpopup_dismiss(pd->ed); if (line_num || target) edit_syntax_color_full_apply(pd->ed, EINA_TRUE); evas_object_smart_callback_call(pd->obj, SIG_COMPILE_ERROR, (char *)msg); --
