elm_code editor: Fix bug with newlines

Badness introduced with the tab work was padding lines with NULL
This commit is contained in:
Andy Williams 2015-03-30 23:36:28 +01:00
parent ab0d49022c
commit c81041ef6a
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ _elm_code_widget_newline(Elm_Code_Widget *widget)
// TODO we need to split tokens from these lines (move this to elm_code_line?)
position = elm_code_line_text_position_for_column_get(line, col - 1, pd->tabstop);
elm_code_line_text_set(newline, content + position, length - position + 2);
elm_code_line_text_set(newline, content + position, length - position);
elm_code_line_text_set(line, content, position);
free(content);