on master help sign in
Re-introduce clearing with bg color, seems the TUI issue was fixed.
7493d19Blaž Hrastnik
helix-term/src/ui/editor.rs+3−4
@@ -77,10 +77,6 @@ impl EditorView {
77 }
77 }
78 }
78 }
79
79
80− // clear with background color
81− // TODO: this seems to prevent setting style later
82− // surface.set_style(viewport, theme.get("ui.background"));
83−
84 self.render_diagnostics(doc, view, area, surface, theme, is_focused);
80 self.render_diagnostics(doc, view, area, surface, theme, is_focused);
85
81
86 let area = Rect::new(
82 let area = Rect::new(
@@ -630,6 +626,9 @@ impl Component for EditorView {
630 }
626 }
631
627
632 fn render(&self, mut area: Rect, surface: &mut Surface, cx: &mut Context) {
628 fn render(&self, mut area: Rect, surface: &mut Surface, cx: &mut Context) {
629+ // clear with background color
630+ surface.set_style(area, cx.editor.theme.get("ui.background"));
631+
633 for (view, is_focused) in cx.editor.tree.views() {
632 for (view, is_focused) in cx.editor.tree.views() {
634 let doc = cx.editor.document(view.doc).unwrap();
633 let doc = cx.editor.document(view.doc).unwrap();
635 self.render_view(doc, view, area, surface, &cx.editor.theme, is_focused);
634 self.render_view(doc, view, area, surface, &cx.editor.theme, is_focused);