Fix some more issues preventing tests from finishing and causing excessive re-renders

This commit is contained in:
itsjunetime
2025-03-17 08:51:57 -06:00
parent d8ee0744b8
commit 595f23de6f
4 changed files with 34 additions and 30 deletions
+8 -8
View File
@@ -77,6 +77,14 @@ pub fn start_rendering_loop(
width: columns * FONT_SIZE.0
};
let main_area = Rect {
x: 0,
y: 0,
width: columns - 2,
height: rows - 6
};
to_render_tx.send(RenderNotif::Area(main_area)).unwrap();
std::thread::spawn(move || {
start_rendering(
&str_path,
@@ -87,14 +95,6 @@ pub fn start_rendering_loop(
)
});
let main_area = Rect {
x: 0,
y: 0,
width: columns - 2,
height: rows - 6
};
to_render_tx.send(RenderNotif::Area(main_area)).unwrap();
let from_render_rx = from_render_rx.into_stream();
(from_render_rx, to_render_tx)
}