on master help sign in
Re-introduce clearing with bg color, seems the TUI issue was fixed.
commit7493d19098a8cea44badf4c127fbe754e9733439 authorBlaž Hrastnik <blaz@mxxn.io> dateSat 10 Apr 2021, 00:22 (6 years ago) parent392c4a9
1 file changed+3−4
helix-term/src/ui/editor.rs+3−4
helix-term/src/ui/editor.rs+3−4
@@ -77,10 +77,6 @@ impl EditorView {
7777 }
7878 }
7979
80− // clear with background color
81− // TODO: this seems to prevent setting style later
82− // surface.set_style(viewport, theme.get("ui.background"));
83−
8480 self.render_diagnostics(doc, view, area, surface, theme, is_focused);
8581
8682 let area = Rect::new(
@@ -630,6 +626,9 @@ impl Component for EditorView {
630626 }
631627
632628 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+
633632 for (view, is_focused) in cx.editor.tree.views() {
634633 let doc = cx.editor.document(view.doc).unwrap();
635634 self.render_view(doc, view, area, surface, &cx.editor.theme, is_focused);