ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=b52de36f03b2ab3649b39d85914577c41c57d990

commit b52de36f03b2ab3649b39d85914577c41c57d990
Author: Andy Williams <a...@andywilliams.me>
Date:   Thu Sep 1 21:43:57 2016 +0100

    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 158c0d3..482064f 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;

-- 


Reply via email to