fixes: various fixes and cleanup

This commit is contained in:
Ashley Wulber 2026-02-19 17:01:13 -05:00
parent b4346ff3ca
commit c1edb81084
No known key found for this signature in database
GPG key ID: 5216D4F46A90A820
27 changed files with 676 additions and 1455 deletions

View file

@ -400,13 +400,13 @@ where
retain
});
// let ids = self.contents.iter().map(|_| None).collect(); // TODO
// tree.diff_children_custom(
// &mut self.contents,
// ids,
// |state, (_, content): (_, _)| content.diff(state),
// |(_, content): (_, _)| content.state(),
// );
let ids = self.contents.iter().map(|_| None).collect(); // TODO
tree.diff_children_custom(
&mut self.contents,
ids,
|state, content: _| content.diff(state),
|content: _| content.state(),
);
let Memory { order, .. } = tree.state.downcast_mut();
order.clone_from(&self.panes);