mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
terminal: hyperlink capacity adjustment needs to call safe variant
This commit is contained in:
@ -1549,14 +1549,11 @@ pub fn cursorSetHyperlink(self: *Screen) !void {
|
||||
} else |err| switch (err) {
|
||||
// hyperlink_map is out of space, realloc the page to be larger
|
||||
error.OutOfMemory => {
|
||||
_ = try self.pages.adjustCapacity(
|
||||
_ = try self.adjustCapacity(
|
||||
self.cursor.page_pin.page,
|
||||
.{ .hyperlink_bytes = page.capacity.hyperlink_bytes * 2 },
|
||||
);
|
||||
|
||||
// Reload cursor since our cursor page has changed.
|
||||
self.cursorReload();
|
||||
|
||||
// Retry
|
||||
return try self.cursorSetHyperlink();
|
||||
},
|
||||
|
Reference in New Issue
Block a user