mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 19:45:49 +00:00
terminal: ensure our std_capacity fits within max page size
This commit is contained in:
@@ -292,7 +292,8 @@ fn initialCapacity(cols: size.CellCountInt) Capacity {
|
||||
comptime {
|
||||
var cap = std_capacity;
|
||||
cap.cols = std.math.maxInt(size.CellCountInt);
|
||||
_ = Page.layout(cap);
|
||||
const layout = Page.layout(cap);
|
||||
assert(layout.total_size <= size.max_page_size);
|
||||
}
|
||||
|
||||
if (std_capacity.adjust(
|
||||
|
||||
Reference in New Issue
Block a user