forked from enlightenment/enventor
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:
parent
8835f7117c
commit
4786fd67d3
|
@ -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/>"))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue