ajwillia-ms pushed a commit to branch edi-0.6. http://git.enlightenment.org/tools/edi.git/commit/?id=95de0ba58a90b2661a28917b761eb4bc8308daf4
commit 95de0ba58a90b2661a28917b761eb4bc8308daf4 Author: Andy Williams <[email protected]> Date: Sun Sep 24 21:35:15 2017 +0100 autosuggest: avoid lingering tab-complete suggestions On focus out or mouse downs we invalidate the suggestion --- src/bin/editor/edi_editor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index b0ffb0b..8e9004f 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -882,6 +882,7 @@ _edit_file_changed(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EI editor = (Edi_Editor *)data; + _suggest_hint_hide(editor); if (evas_object_visible_get(editor->suggest_bg)) return; @@ -1227,6 +1228,7 @@ _unfocused_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UN if (_edi_config->autosave) edi_editor_save(editor); + _suggest_hint_hide(editor); if (editor->suggest_bg) evas_object_hide(editor->suggest_bg); @@ -1248,6 +1250,7 @@ _mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED, editor = (Edi_Editor *)data; event = (Evas_Event_Mouse_Up *)event_info; + _suggest_hint_hide(editor); if (editor->suggest_bg) evas_object_hide(editor->suggest_bg); --
