elm_code editor: display cursor over selection

If they overlap it's good to know where text will appear
This commit is contained in:
Andy Williams 2015-03-29 20:13:30 +01:00
parent 2d83c07840
commit 25bac0c581
1 changed files with 1 additions and 1 deletions

View File

@ -353,8 +353,8 @@ _elm_code_widget_fill_line(Elm_Code_Widget *widget, Elm_Code_Line *line)
cells[x].bg = _elm_code_widget_status_type_get(widget, line->status, x - gutter + 1);
}
_elm_code_widget_fill_cursor(widget, line, cells, gutter, w);
_elm_code_widget_fill_selection(widget, line, cells, gutter, w);
_elm_code_widget_fill_cursor(widget, line, cells, gutter, w);
if (line->number < elm_code_file_lines_get(line->file))
_elm_code_widget_fill_whitespace(widget, '\n', &cells[length + gutter]);