hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=3f7e523d392c85180e03b08de83cd329a00e4c67

commit 3f7e523d392c85180e03b08de83cd329a00e4c67
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Sun Jan 3 03:56:25 2016 +0900

    improve a autocomplete feature.
    
    it should not blow the string queue up.
    
    @fix T2982
---
 src/lib/auto_comp.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index 72b4d62..83acb08 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -441,8 +441,7 @@ push_char(autocomp_data *ad, char c)
         ad->queue_pos = 0;
      }
    ad->queue[ad->queue_pos] = c;
-
-  ad->queue_pos++;
+   ad->queue_pos++;
 }
 
 static void
@@ -772,7 +771,7 @@ anchor_key_down_cb(void *data, Evas *evas EINA_UNUSED,
    //Cancel the auto complete.
    if (!strcmp(ev->key, "BackSpace"))
      {
-        queue_reset(ad);
+        entry_anchor_off(ad);
         ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
         return;
      }

-- 


Reply via email to