elm_code: Fix minor mistakes with tab commit

This commit is contained in:
Andy Williams 2015-03-29 20:39:26 +01:00
parent 25bac0c581
commit 531d369c5e
1 changed files with 3 additions and 3 deletions

View File

@ -113,8 +113,8 @@ _elm_code_widget_resize(Elm_Code_Widget *widget)
EINA_LIST_FOREACH(pd->code->file->lines, item, line)
{
line_width = elm_code_line_text_column_width(line, pd->tabstop);
if ((int) column_length + gutter + 1 > w)
w = (int) column_length + gutter + 1;
if ((int) line_width + gutter + 1 > w)
w = (int) line_width + gutter + 1;
}
if (w*cw > ww)
@ -342,7 +342,7 @@ _elm_code_widget_fill_line(Elm_Code_Widget *widget, Elm_Code_Line *line)
for (i = x + 1; i < x + charwidth; i++)
{
cells[i].codepoint = 0;
cells[i].bg = _elm_code_widget_status_type_get(widget, line->status, x - gutter + 1);
cells[i].bg = _elm_code_widget_status_type_get(widget, line->status, i - gutter + 1);
}
_elm_code_widget_fill_whitespace(widget, unichr, &cells[x]);