datastruct: fix split tree debug log rounding

This commit is contained in:
Mitchell Hashimoto
2025-08-07 10:51:07 -07:00
parent ae5dc3a4fb
commit 75dd8e46b5
2 changed files with 51 additions and 12 deletions

View File

@@ -222,6 +222,12 @@ pub const SplitTree = extern struct {
&single_tree,
);
defer new_tree.deinit();
log.debug(
"new split at={} direction={} old_tree={} new_tree={}",
.{ handle, direction, old_tree, &new_tree },
);
// Replace our tree
self.setTree(&new_tree);
// Focus our new surface