diff --git a/src/render/mod.rs b/src/render/mod.rs index c89f95c..dc2cd59 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -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); diff --git a/src/ui_model/line.rs b/src/ui_model/line.rs index 42a107c..a968ac1 100644 --- a/src/ui_model/line.rs +++ b/src/ui_model/line.rs @@ -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 {