hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=7a7d220fc85f5051fc16ea7b3e7fcf02a3daf06b
commit 7a7d220fc85f5051fc16ea7b3e7fcf02a3daf06b Author: ChunEon Park <[email protected]> Date: Sat Mar 15 15:32:16 2014 +0900 editor - fixed side effect by 50a975b0ce77c21b61c738d784415b764d9aeaff since the \<br\> tag appending order is changed. these functions should be updated also. --- src/bin/edc_editor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index 709bee1..87f0015 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -39,7 +39,7 @@ line_increase(edit_data *ed) char buf[MAX_LINE_DIGIT_CNT]; ed->line_max++; - snprintf(buf, sizeof(buf), "%d<br/>", ed->line_max); + snprintf(buf, sizeof(buf), "<br/>%d", ed->line_max); elm_entry_entry_append(ed->en_line, buf); } @@ -832,9 +832,11 @@ edit_edc_read(edit_data *ed, const char *file_path) } //Read last lines. - int line_num = 2; + int line_num = 1; EINA_ITERATOR_FOREACH(itr, line) { + line_num++; + //Append line number sprintf(buf, "<br/>%d", line_num); if (!eina_strbuf_append(strbuf_line, buf)) goto err; @@ -843,8 +845,6 @@ edit_edc_read(edit_data *ed, const char *file_path) if (!eina_strbuf_append(strbuf_edit, "<br/>")) goto err; if (!eina_strbuf_append_length(strbuf_edit, line->start, line->length)) goto err; - - line_num++; } elm_entry_entry_append(ed->en_line, eina_strbuf_string_get(strbuf_line)); elm_entry_entry_append(ed->en_edit, eina_strbuf_string_get(strbuf_edit)); --
