jaehyun pushed a commit to branch master.

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

commit 0832ee8b16f12835fd79c96d8bc4130f819fdedd
Author: Jaehyun Cho <[email protected]>
Date:   Tue Feb 24 20:37:05 2015 +0900

    Revert "syntax_color: Set white to default text color."
    
    This reverts commit 992b50cc9b7f915a0b707033a62a347b1ca18372.
---
 src/lib/syntax_color.c | 17 ++++++++++-------
 1 file changed, 10 insertions(+), 7 deletions(-)

diff --git a/src/lib/syntax_color.c b/src/lib/syntax_color.c
index a7dcf03..1fe0dfb 100644
--- a/src/lib/syntax_color.c
+++ b/src/lib/syntax_color.c
@@ -904,14 +904,17 @@ color_apply(color_data *cd, const char *src, int length, 
char *from, char *to)
         if (to && (cur > to)) goto finished;
      }
 
+   //Same with origin source.
+   if (prev == src)
+     str = src;
+   //Some color syntax is applied.
+   else
+     {
 finished:
-   //append leftovers.
-   if ((prev == src) || (prev < cur)) eina_strbuf_append(strbuf, prev);
-
-   //prepend default color(white).
-   eina_strbuf_prepend(strbuf, "<color=#FFFFFFFF>");
-   eina_strbuf_append(strbuf, "</color>");
-   str = eina_strbuf_string_get(strbuf);
+        //append leftovers.
+        if (prev < cur) eina_strbuf_append(strbuf, prev);
+        str = eina_strbuf_string_get(strbuf);
+     }
 
    macro_keys_free(cd);
 

-- 


Reply via email to