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.
This commit is contained in:
ChunEon Park 2014-02-28 01:07:06 +09:00
parent 8835f7117c
commit 4786fd67d3
1 changed files with 2 additions and 1 deletions

View File

@ -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/>"))
{