mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 07:46:12 +03:00
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:

committed by
Mitchell Hashimoto

parent
844f20d01f
commit
5cf7575967
@ -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,
|
||||
|
Reference in New Issue
Block a user