diff --git a/src/terminal/hash_map.zig b/src/terminal/hash_map.zig index c9c650784..9e47da561 100644 --- a/src/terminal/hash_map.zig +++ b/src/terminal/hash_map.zig @@ -857,7 +857,7 @@ fn HashMapUnmanaged( /// because capacity is rounded up to the next power of two. This is /// a design requirement for this hash map implementation. pub fn layoutForCapacity(new_capacity: Size) Layout { - assert(std.math.isPowerOfTwo(new_capacity)); + assert(new_capacity == 0 or std.math.isPowerOfTwo(new_capacity)); // Pack our metadata, keys, and values. const meta_start = @sizeOf(Header); diff --git a/src/terminal/page.zig b/src/terminal/page.zig index deff6709e..701303d45 100644 --- a/src/terminal/page.zig +++ b/src/terminal/page.zig @@ -46,7 +46,7 @@ const UriAlloc = BitmapAllocator(uri_chunk); /// so it is a worst possible byte size. You probably don't need a large /// value here to accomodate many cells for typical (rare) hyperlink /// usage. -const hyperlink_count_default = 1; +const hyperlink_count_default = 0; const hyperlink_bytes_default = hyperlink_count_default * @max( (uri_chunk * 2), // ID + URI @sizeOf(HyperlinkEntry), // Entry