editor: reset cursor position when edc is loaded.

edc editor needs to reset cursor position when a edc is newly loaded.

People granted this behavior.
This commit is contained in:
Hermet Park 2016-03-05 00:30:52 +09:00
parent 7795dbe101
commit 332bbeda4f
1 changed files with 3 additions and 0 deletions

View File

@ -1078,6 +1078,7 @@ edit_edc_load(edit_data *ed, const char *file_path)
elm_entry_entry_append(ed->en_line, markup_line);
free(markup_line);
ed->cur_line = 1;
ed->line_max = line_num;
group_name = parser_first_group_name_get(ed->pd, ed->en_edit);
@ -1104,6 +1105,8 @@ err:
eina_stringshare_del(group_name);
elm_entry_cursor_pos_set(ed->en_edit, 0);
return ret;
}