hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=82a29d984ccd65187045ab948be4dc9a0a813276
commit 82a29d984ccd65187045ab948be4dc9a0a813276 Author: ChunEon Park <[email protected]> Date: Wed Aug 13 22:35:47 2014 +0900 template: correct line increase in part insert. --- src/bin/template.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/template.c b/src/bin/template.c index cdf8103..2b1d8bc 100644 --- a/src/bin/template.c +++ b/src/bin/template.c @@ -176,8 +176,9 @@ internal_template_part_insert(edit_data *ed, elm_entry_entry_insert(edit_entry, t[i]); } - //Increase (part name + body + relatives + tail) line - edit_line_increase(ed, (1 + line_cnt + 2 + TEMPLATE_PART_TALE_LINE_CNT)); + /* Increase (part name + body + relatives + tail) line. But line increase + count should be -1 because the cursor position would be taken one line. */ + edit_line_increase(ed, (1 + line_cnt + 2 + TEMPLATE_PART_TALE_LINE_CNT) - 1); int cursor_pos2 = elm_entry_cursor_pos_get(edit_entry); edit_redoundo_region_push(ed, cursor_pos1, cursor_pos2); --
