forked from enlightenment/enventor
enventor - increase lines less 1 when insert template code.
since it doens't considered the current empty line, it increases the lines much more than 1.
This commit is contained in:
parent
4915eb89d0
commit
6b37c2b9de
|
@ -287,13 +287,17 @@ edit_template_insert(edit_data *ed)
|
|||
p[space] = '\0';
|
||||
|
||||
int i;
|
||||
for (i = 0; i < line_cnt; i++)
|
||||
for (i = 0; i < (line_cnt - 1); i++)
|
||||
{
|
||||
elm_entry_entry_insert(ed->en_edit, p);
|
||||
elm_entry_entry_insert(ed->en_edit, t[i]);
|
||||
//Incease line by (line count - 1)
|
||||
line_increase(ed);
|
||||
}
|
||||
|
||||
elm_entry_entry_insert(ed->en_edit, p);
|
||||
elm_entry_entry_insert(ed->en_edit, t[i]);
|
||||
|
||||
elm_entry_cursor_pos_set(ed->en_edit, cursor_pos);
|
||||
|
||||
syntax_color_timer_update(ed);
|
||||
|
@ -363,13 +367,17 @@ edit_template_part_insert(edit_data *ed, Edje_Part_Type type)
|
|||
}
|
||||
|
||||
int i;
|
||||
for (i = 0; i < line_cnt; i++)
|
||||
for (i = 0; i < (line_cnt - 1); i++)
|
||||
{
|
||||
elm_entry_entry_insert(ed->en_edit, p);
|
||||
elm_entry_entry_insert(ed->en_edit, t[i]);
|
||||
//Incease line by (line count - 1)
|
||||
line_increase(ed);
|
||||
}
|
||||
|
||||
elm_entry_entry_insert(ed->en_edit, p);
|
||||
elm_entry_entry_insert(ed->en_edit, t[i]);
|
||||
|
||||
elm_entry_cursor_pos_set(ed->en_edit, cursor_pos);
|
||||
|
||||
syntax_color_timer_update(ed);
|
||||
|
|
Loading…
Reference in New Issue