Fix document reloading with delete-then-write editors and redo BottomMessage updating to work better

This commit is contained in:
itsjunetime
2024-12-01 13:19:18 -07:00
parent b9a12650c6
commit 0129c498c2
6 changed files with 126 additions and 72 deletions
+1
View File
@@ -94,6 +94,7 @@ async fn render_all_files(path: &'static str) -> Vec<PageInfo> {
while let Some(info) = from_render_rx.next().await {
match info.expect("Renderer ran into an error while rendering") {
RenderInfo::Reloaded => (),
RenderInfo::NumPages(num) => fill_default(&mut pages, num),
RenderInfo::Page(page) => {
let num = page.page;