hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=4786fd67d30446abef00e59174efa4c6a8c3d2df
commit 4786fd67d30446abef00e59174efa4c6a8c3d2df Author: ChunEon Park <[email protected]> Date: Fri Feb 28 01:07:06 2014 +0900 editor - apply syntax color when you paste the text. if the text was started with empty character, the syntax color won't be applied. now it's fixed to check the string length additionally. --- src/bin/edc_editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c index 4288436..255d052 100644 --- a/src/bin/edc_editor.c +++ b/src/bin/edc_editor.c @@ -113,7 +113,8 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) if (info->insert) { - if (info->change.insert.content[0] == ' ') return; + if ((info->change.insert.plain_length == 1)&& + (info->change.insert.content[0] == ' ')) return; if (!strcmp(info->change.insert.content, "<br/>")) { --
