mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-09-21 04:57:25 +03:00
Re-introduce clearing with bg color, seems the TUI issue was fixed.
This commit is contained in:
parent
392c4a9c02
commit
7493d19098
@ -77,10 +77,6 @@ pub fn render_view(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// clear with background color
|
|
||||||
// TODO: this seems to prevent setting style later
|
|
||||||
// surface.set_style(viewport, theme.get("ui.background"));
|
|
||||||
|
|
||||||
self.render_diagnostics(doc, view, area, surface, theme, is_focused);
|
self.render_diagnostics(doc, view, area, surface, theme, is_focused);
|
||||||
|
|
||||||
let area = Rect::new(
|
let area = Rect::new(
|
||||||
@ -630,6 +626,9 @@ fn handle_event(&mut self, event: Event, cx: &mut Context) -> EventResult {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn render(&self, mut area: Rect, surface: &mut Surface, cx: &mut Context) {
|
fn render(&self, mut area: Rect, surface: &mut Surface, cx: &mut Context) {
|
||||||
|
// clear with background color
|
||||||
|
surface.set_style(area, cx.editor.theme.get("ui.background"));
|
||||||
|
|
||||||
for (view, is_focused) in cx.editor.tree.views() {
|
for (view, is_focused) in cx.editor.tree.views() {
|
||||||
let doc = cx.editor.document(view.doc).unwrap();
|
let doc = cx.editor.document(view.doc).unwrap();
|
||||||
self.render_view(doc, view, area, surface, &cx.editor.theme, is_focused);
|
self.render_view(doc, view, area, surface, &cx.editor.theme, is_focused);
|
||||||
|
Loading…
Reference in New Issue
Block a user