forked from enlightenment/efl
elm_code editor: Fix bug with newlines
Badness introduced with the tab work was padding lines with NULL
This commit is contained in:
parent
3ce607322b
commit
7942fa8710
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue