forked from enlightenment/edi
Take line coloring to the end of the line
This commit is contained in:
parent
fdccc03a4a
commit
742e70186c
|
@ -44,6 +44,12 @@ EAPI void elm_code_widget_fill(Evas_Object *o, Elm_Code *code)
|
||||||
|
|
||||||
chr++;
|
chr++;
|
||||||
}
|
}
|
||||||
|
for (; x < (unsigned int) w; x++)
|
||||||
|
{
|
||||||
|
cells[x].codepoint = 0;
|
||||||
|
cells[x].bg = line->status;
|
||||||
|
cells[x].fg = ELM_CODE_TOKEN_TYPE_DEFAULT;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
evas_object_textgrid_update_add(o, 0, 0, w, h);
|
evas_object_textgrid_update_add(o, 0, 0, w, h);
|
||||||
|
@ -79,6 +85,12 @@ _elm_code_widget_line_cb(void *data, Eo *obj, const Eo_Event_Description *desc E
|
||||||
|
|
||||||
chr++;
|
chr++;
|
||||||
}
|
}
|
||||||
|
for (; x < (unsigned int) w; x++)
|
||||||
|
{
|
||||||
|
cells[x].codepoint = 0;
|
||||||
|
cells[x].bg = line->status;
|
||||||
|
cells[x].fg = ELM_CODE_TOKEN_TYPE_DEFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
evas_object_textgrid_update_add(o, 0, line->number - 1, w, 1);
|
evas_object_textgrid_update_add(o, 0, line->number - 1, w, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue