jaehyun pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=f26e60d6242fba3bc97e409c9421f224cff12941
commit f26e60d6242fba3bc97e409c9421f224cff12941 Author: Jaehyun Cho <[email protected]> Date: Mon Mar 14 14:45:37 2016 +0900 indent: Fix to paste a word at correct position. Do not apply indentation when pasted string does not contain keywords which cause a new line. (e.g. string not containing ';') Test Plan: 1. Open basic.edc 2. Copy "default" 3. Paste at the same position. --- src/lib/indent.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/indent.c b/src/lib/indent.c index 892947f..3c3648d 100644 --- a/src/lib/indent.c +++ b/src/lib/indent.c @@ -393,8 +393,11 @@ indent_code_lines_create(indent_data *id EINA_UNUSED, const char *utf8) } utf8_ptr++; } + //FIXME: Now string is not added to code line and indentation is not applied + // if string does not contain keywords which cause a new line. + // (e.g. string not containing ';') //Append rest of the input string. - if (utf8_lexem > utf8_append_ptr) + if (utf8_append_ptr && (utf8_lexem > utf8_append_ptr)) code_lines = eina_list_append(code_lines, eina_stringshare_add(utf8_lexem)); --
