hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=dee1f3c1af831888cae858d2be6c77f4272c11a0
commit dee1f3c1af831888cae858d2be6c77f4272c11a0 Author: ChunEon Park <[email protected]> Date: Tue May 27 16:30:09 2014 +0900 editor - set syntax color text rage in experimental. --- src/bin/edc_editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index d30878e..7bc1b8c 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -4,7 +4,7 @@ //FIXME: Make flexible const int MAX_LINE_DIGIT_CNT = 10; -const int SYNTAX_COLOR_SPARE_LINES = 25; +const int SYNTAX_COLOR_SPARE_LINES = 42; const double SYNTAX_COLOR_DEFAULT_TIME = 0.25; const double SYNTAX_COLOR_SHORT_TIME = 0.025; @@ -92,8 +92,8 @@ current_visible_text_region_get(edit_data *ed, int *from_line, int *to_line) elm_scroller_region_get(ed->scroller, NULL, ®ion_y, NULL, ®ion_h); elm_entry_cursor_geometry_get(ed->en_edit, NULL, NULL, NULL, &cursor_h); - int from = (region_y / cursor_h) - SYNTAX_COLOR_SPARE_LINES; - int to = from + (region_h / cursor_h) + SYNTAX_COLOR_SPARE_LINES; + int from = (region_y / cursor_h); + int to = from + (region_h / cursor_h); from -= SYNTAX_COLOR_SPARE_LINES; to += SYNTAX_COLOR_SPARE_LINES; --
