auto_comp: close popup if the line is deleted.

@fix.
This commit is contained in:
ChunEon Park 2015-06-23 10:21:22 +09:00
parent c301fab3cd
commit 6e7e18b12b
3 changed files with 11 additions and 0 deletions

View File

@ -694,6 +694,14 @@ autocomp_list_show(void)
context_lexem_get(ad, entry, EINA_TRUE);
}
void
autocomp_reset(void)
{
autocomp_data *ad = g_ad;
if (!ad) return;
queue_reset(ad);
}
void
autocomp_target_set(edit_data *ed)
{

View File

@ -82,6 +82,7 @@ void autocomp_enabled_set(Eina_Bool enabled);
Eina_Bool autocomp_enabled_get(void);
Eina_Bool autocomp_event_dispatch(const char *key);
void autocomp_list_show(void);
void autocomp_reset(void);
/* syntax color */

View File

@ -589,6 +589,8 @@ EOLIAN static void
_enventor_object_line_delete(Eo *obj EINA_UNUSED, Enventor_Object_Data *pd)
{
edit_line_delete(pd->ed);
//Close auto-completion popup if it's shown.
autocomp_reset();
}
EOLIAN static Eo *