indent: Fix to compare string before '\0'

This commit is contained in:
Jaehyun Cho 2016-02-17 16:15:40 +09:00
parent cf417f8fa4
commit 0b8734f14d
1 changed files with 2 additions and 2 deletions

View File

@ -257,12 +257,12 @@ indent_text_auto_format(indent_data *id EINA_UNUSED,
int tb_cur_pos = 0;
while (utf8_ptr <= utf8_end)
while (utf8_ptr < utf8_end)
{
if (*utf8_ptr != ' ' && *utf8_ptr != '\t' && *utf8_ptr != '\n' )
{
utf8_lexem = utf8_ptr;
while (utf8_ptr <= utf8_end)
while (utf8_ptr < utf8_end)
{
if (*utf8_ptr == '{' || *utf8_ptr == '}' || *utf8_ptr == ';')
{