add fixmes

This commit is contained in:
daa 2017-09-05 20:31:52 +03:00
parent 05dee3251f
commit 26493977be
2 changed files with 2 additions and 0 deletions

View File

@ -33,6 +33,7 @@ pub fn render(
for i in 0..line.line.len() {
let (bg, fg) = color_model.cell_colors(&line.line[i]);
// FIXME: draw background for all item length
if let Some(bg) = bg {
ctx.set_source_rgb(bg.0, bg.1, bg.2);
ctx.rectangle(line_x, line_y, char_width, line_height);

View File

@ -267,6 +267,7 @@ impl StyledLine {
let mut cell_to_byte = Vec::new();
let attr_list = pango::AttrList::new();
let mut byte_offset = 0;
//FIXME: generate single attr for same atttributes values
for (cell_idx, cell) in line.line.iter().enumerate() {
if cell.attrs.double_width {