hermet pushed a commit to branch master.

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

commit 2a19e9907962e629e2a5df06431306c545f33d0e
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Thu Mar 13 03:11:01 2014 +0900

    parser - fix the inccorect decision to
    
    When the user double clicks a word,
    enventor parser checks whether the word is regarded to some values
    that ctxpopup shows the candidates list of (for other values).
    
    In case the user just clicks the ":" and ";"
    the parser misjudges it's the values that chould be changes to other values.
    
    Now parser avoids the both cases to do nothing.
---
 src/bin/edc_parser.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/bin/edc_parser.c b/src/bin/edc_parser.c
index 68df568..9b1f692 100644
--- a/src/bin/edc_parser.c
+++ b/src/bin/edc_parser.c
@@ -200,13 +200,14 @@ attr_value *
 parser_attribute_get(parser_data *pd, const char *text, const char *cur)
 {
    if (!text || !cur) return NULL;
-
-   char *p = (char *) cur;
+   if ((*cur == ';') || (*cur == ':')) return NULL;
 
    parser_attr *attr;
    Eina_Bool instring = EINA_FALSE;
    Eina_Bool necessary = EINA_FALSE;
 
+   char *p = (char *) cur;
+
    while (p >= text)
      {
         if (*p == ':')

-- 


Reply via email to