mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
terminal: change default hyperlink count to zero
This commit is contained in:
@ -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);
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user