@@ -39,6 +39,10 @@ impl EditorView {
40 let area = Rect::new(OFFSET, 0, viewport.width - OFFSET, viewport.height - 2); // - 2 for statusline and prompt
40 let area = Rect::new(OFFSET, 0, viewport.width - OFFSET, viewport.height - 2); // - 2 for statusline and prompt
41 self.render_buffer(view, area, surface, theme);
41 self.render_buffer(view, area, surface, theme);
43+ // clear with background color
44+ surface.set_style(viewport, theme.get("ui.background"));
42 let area = Rect::new(0, viewport.height - 2, viewport.width, 1);
46 let area = Rect::new(0, viewport.height - 2, viewport.width, 1);
43 self.render_statusline(view, area, surface, theme);
47 self.render_statusline(view, area, surface, theme);
@@ -51,9 +55,6 @@ impl EditorView {
51 surface: &mut Surface,
55 surface: &mut Surface,
52 theme: &Theme,
56 theme: &Theme,
54− // clear with background color
55− surface.set_style(viewport, theme.get("ui.background"));
57 // TODO: inefficient, should feed chunks.iter() to tree_sitter.parse_with(|offset, pos|)
58 // TODO: inefficient, should feed chunks.iter() to tree_sitter.parse_with(|offset, pos|)
58 let source_code = view.doc.text().to_string();
59 let source_code = view.doc.text().to_string();