hermet pushed a commit to branch master.


commit 876903f9189cef8a24e6bc2ea05b7f66e66f0de0
Author: Taehyub Kim <taehyub....@samsung.com>
Date:   Fri Apr 22 15:44:18 2016 +0900

    template: fix the error of line position when inserting group template
    fix the error operation of group template insertion.
    The line position would be broken after inserting group template.
    so I fixed it.
    Test Plan:
    1. launch enventor
    2. insert group template using Ctrl + T
    3. check the line position of source code whether it is corrected or not
    Reviewers: Hermet, Jaehyun_Cho, NikaWhite
    Differential Revision: https://phab.enlightenment.org/D3908
 src/lib/template.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/lib/template.c b/src/lib/template.c
index 609f1cd..66921cd 100644
--- a/src/lib/template.c
+++ b/src/lib/template.c
@@ -445,9 +445,6 @@ template_insert(edit_data *ed, 
Enventor_Template_Insert_Type insert_type,
    elm_entry_entry_insert(entry, p);
    elm_entry_entry_insert(entry, t[i]);
-   /* Line increase count should be -1 in entry template insertion because the
-      cursor position would be taken one line additionally. */
-   if (insert_type == ENVENTOR_TEMPLATE_INSERT_DEFAULT) line_cnt--;
    edit_line_increase(ed, line_cnt);
    int cursor_pos2 = elm_entry_cursor_pos_get(entry);


Reply via email to