forked from enlightenment/enventor
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.
This commit is contained in:
parent
b9f8a09820
commit
2a19e99079
|
@ -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 == ':')
|
||||
|
|
Loading…
Reference in New Issue