From b52de36f03b2ab3649b39d85914577c41c57d990 Mon Sep 17 00:00:00 2001 From: Andy Williams Date: Thu, 1 Sep 2016 21:43:57 +0100 Subject: [PATCH] Elm: Dont'd display a ghost 0 width line marker for elm_code. Avoiding a ghost line when we have no width marker configured --- src/lib/elementary/elm_code_widget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/elementary/elm_code_widget.c b/src/lib/elementary/elm_code_widget.c index 158c0d382d..482064f1d3 100644 --- a/src/lib/elementary/elm_code_widget.c +++ b/src/lib/elementary/elm_code_widget.c @@ -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;