hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=9e81a5f263a8ec72dfadd91a0ebe490387e31ded

commit 9e81a5f263a8ec72dfadd91a0ebe490387e31ded
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Mon Jun 22 14:09:14 2015 +0900

    Autocomplete: fix behaviour of the Backspace.
    
    Summary:
    For case when the list of candidates is shown after typing
    '.', "backspace" didn't work. It happens because the queue was
    already cleared, when the user press "backspace". But at the
    same time list of the candidates is presented and shown.
    
    Reviewers: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D2714
---
 src/lib/auto_comp.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index 403e13e..88713b5 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -348,7 +348,8 @@ anchor_unfocused_cb(void *data EINA_UNUSED, Evas_Object 
*obj EINA_UNUSED,
 static void
 queue_reset(autocomp_data *ad)
 {
-   if (ad->queue_pos == 0) return;
+   if (!ad->queue_pos && !ad->anchor_visible)
+     return;
    ad->queue_pos = 0;
    memset(ad->queue, 0x0, sizeof(ad->queue));
    entry_anchor_off(ad);

-- 


Reply via email to