hermet pushed a commit to branch master.

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

commit a1a9d7eae1f023e18befd17f4ba2a1fc764ae515
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Mon Aug 31 19:14:37 2015 +0900

    Autocomplete: change behavior of show candidate list.
    
    Summary:
    prevously in cases when necessary node of
    the lexem tree wasn't find - was displayed the
    candidate list with  the root node
    candidates (collections, images, color_classes, etc).
    Now the candidate list do not displayed at all.
    
    Reviewers: Hermet
    
    Differential Revision: https://phab.enlightenment.org/D2972
---
 src/lib/auto_comp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lib/auto_comp.c b/src/lib/auto_comp.c
index 6317bd5..94d4950 100644
--- a/src/lib/auto_comp.c
+++ b/src/lib/auto_comp.c
@@ -286,7 +286,7 @@ context_lexem_thread_end_cb(void *data, Ecore_Thread 
*thread EINA_UNUSED)
 {
    ctx_lexem_td *td = (ctx_lexem_td *)data;
 
-   td->ad->lexem_ptr = td->result ? td->result : (lexem *)td->ad->lexem_root;
+   td->ad->lexem_ptr = td->result;
    td->ad->cntx_lexem_thread = NULL;
 
    if (td->list_show  || (td->result && td->result->dot && 
td->ad->dot_candidate))
@@ -301,7 +301,7 @@ context_lexem_thread_cancel_cb(void *data, Ecore_Thread 
*thread EINA_UNUSED)
 {
    ctx_lexem_td *td = (ctx_lexem_td *)data;
 
-   td->ad->lexem_ptr = td->result ? td->result : (lexem *)td->ad->lexem_root;
+   td->ad->lexem_ptr = td->result;
    if (td->list_show || (td->result && td->result->dot && 
td->ad->dot_candidate))
      candidate_list_show(td->ad);
    td->ad->cntx_lexem_thread = NULL;

-- 


Reply via email to