elm_code_widget: Line numbers Off then Gutter Off.

When line numbers were disabled in the widget there was still
some remnant of the background colour of gutter in the widget.
This respects having the line numbers disabled visually.
This commit is contained in:
Alastair Poole 2020-01-02 00:01:00 +00:00
parent 072ff46aa2
commit 5c7fe5ac31
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ _elm_code_widget_fill_line_gutter(Elm_Code_Widget *widget, Evas_Textgrid_Cell *c
cursor_line = elm_code_file_line_get(line->file, pd->cursor_line);
if (_elm_code_widget_line_in_scope(line, cursor_line))
cells[gutter-1].bg = ELM_CODE_WIDGET_COLOR_GUTTER_SCOPE_BG;
else
else if (pd->show_line_numbers)
cells[gutter-1].bg = ELM_CODE_WIDGET_COLOR_GUTTER_BG;
}
else