forked from enlightenment/enventor
Revert "enventor - no more workaround code. it works now...?"
This reverts commit 27530e9d2d
.
no, still it has the problem. when you insert the template code,
the cursor will be set to 0 position.
This commit is contained in:
parent
27530e9d2d
commit
c4467b2d37
|
@ -86,7 +86,7 @@ config_init(const char *edc_path, const char *edc_img_path,
|
|||
cd->linenumber = EINA_TRUE;
|
||||
cd->part_highlight = EINA_TRUE;
|
||||
cd->dummy_swallow = EINA_TRUE;
|
||||
cd->auto_indent = EINA_TRUE;
|
||||
cd->auto_indent = EINA_FALSE;
|
||||
|
||||
return cd;
|
||||
}
|
||||
|
|
|
@ -81,7 +81,8 @@ syntax_color_apply(edit_data *ed)
|
|||
utf8 = strdup(utf8);
|
||||
const char *translated = color_apply(syntax_color_data_get(ed->sh), utf8,
|
||||
strlen(utf8));
|
||||
elm_entry_entry_set(ed->en_edit, translated);
|
||||
elm_entry_entry_set(ed->en_edit, NULL);
|
||||
elm_entry_entry_append(ed->en_edit, translated);
|
||||
elm_entry_cursor_pos_set(ed->en_edit, pos);
|
||||
free(utf8);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue