forked from enlightenment/edi
elm_code whitespace: only display actual newlines
No newlines at the end of a file if there is no other line
This commit is contained in:
parent
331e60969f
commit
59450c71f2
|
@ -334,7 +334,8 @@ _elm_code_widget_fill_line(Elm_Code_Widget *widget, Elm_Code_Line *line)
|
||||||
|
|
||||||
_elm_code_widget_fill_cursor(widget, line, cells, gutter, w);
|
_elm_code_widget_fill_cursor(widget, line, cells, gutter, w);
|
||||||
_elm_code_widget_fill_selection(widget, line, cells, gutter, w);
|
_elm_code_widget_fill_selection(widget, line, cells, gutter, w);
|
||||||
_elm_code_widget_fill_whitespace(widget, '\n', &cells[length + gutter]);
|
if (line->number < elm_code_file_lines_get(line->file))
|
||||||
|
_elm_code_widget_fill_whitespace(widget, '\n', &cells[length + gutter]);
|
||||||
|
|
||||||
evas_object_textgrid_update_add(pd->grid, 0, line->number - 1, w, 1);
|
evas_object_textgrid_update_add(pd->grid, 0, line->number - 1, w, 1);
|
||||||
}
|
}
|
||||||
|
@ -402,7 +403,6 @@ _elm_code_widget_line_cb(void *data, Eo *obj EINA_UNUSED,
|
||||||
return EO_CALLBACK_CONTINUE;
|
return EO_CALLBACK_CONTINUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_elm_code_widget_file_cb(void *data, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED,
|
_elm_code_widget_file_cb(void *data, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED,
|
||||||
void *event_info EINA_UNUSED)
|
void *event_info EINA_UNUSED)
|
||||||
|
|
Loading…
Reference in New Issue