fix(PageList): when cloning, explicitly set cols

Otherwise pages may have the wrong width if they were resized down with
a fast path that just chanes the size without adjusting capacity at all.
This commit is contained in:
Qwerasd
2025-01-09 23:39:40 -05:00
committed by Mitchell Hashimoto
parent 844f20d01f
commit 5cf7575967

View File

@ -520,6 +520,7 @@ pub fn clone(
assert(node.data.capacity.rows >= chunk.end - chunk.start);
defer node.data.assertIntegrity();
node.data.size.rows = chunk.end - chunk.start;
node.data.size.cols = chunk.node.data.size.cols;
try node.data.cloneFrom(
&chunk.node.data,
chunk.start,