@@ -39,6 +39,10 @@ impl EditorView {
3939 ) {
4040 let area = Rect::new(OFFSET, 0, viewport.width - OFFSET, viewport.height - 2); // - 2 for statusline and prompt
4141 self.render_buffer(view, area, surface, theme);
42+
43+ // clear with background color
44+ surface.set_style(viewport, theme.get("ui.background"));
45+
4246 let area = Rect::new(0, viewport.height - 2, viewport.width, 1);
4347 self.render_statusline(view, area, surface, theme);
4448 }
@@ -51,9 +55,6 @@ impl EditorView {
5155 surface: &mut Surface,
5256 theme: &Theme,
5357 ) {
54− // clear with background color
55− surface.set_style(viewport, theme.get("ui.background"));
56−
5758 // TODO: inefficient, should feed chunks.iter() to tree_sitter.parse_with(|offset, pos|)
5859 let source_code = view.doc.text().to_string();
5960