hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=07077f53cb679608e88254732a17e5a58da26424

commit 07077f53cb679608e88254732a17e5a58da26424
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Wed Aug 13 20:35:03 2014 +0900

    template_code: fix one less line increase problem in template inserting.
---
 src/bin/template.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/bin/template.c b/src/bin/template.c
index 24fd887..f213f3a 100644
--- a/src/bin/template.c
+++ b/src/bin/template.c
@@ -287,7 +287,9 @@ template_insert(edit_data *ed)
    elm_entry_entry_insert(entry, p);
    elm_entry_entry_insert(entry, t[i]);
 
-   edit_line_increase(ed, line_cnt);
+   /* Line increase count should be -1 because the cursor position would be 
+      taken one line. */
+   edit_line_increase(ed, (line_cnt - 1));
 
    int cursor_pos2 = elm_entry_cursor_pos_get(entry);
    edit_redoundo_region_push(ed, cursor_pos1, cursor_pos2);

-- 


Reply via email to