Elm: Dont'd display a ghost 0 width line marker for elm_code.

Avoiding a ghost line when we have no width marker configured
This commit is contained in:
Andy Williams 2016-09-01 21:43:57 +01:00
parent f290f9ca4c
commit b52de36f03
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ _elm_code_widget_status_type_get(Elm_Code_Widget *widget, Elm_Code_Line *line, u
if (pd->editable && pd->focussed && pd->cursor_line == line->number)
return ELM_CODE_STATUS_TYPE_CURRENT;
if (pd->line_width_marker == col-1)
if (pd->line_width_marker > 0 && pd->line_width_marker == col-1)
return ELM_CODE_WIDGET_COLOR_GUTTER_BG;
return ELM_CODE_STATUS_TYPE_DEFAULT;