From 4a861a8c8f366afbec2f265f1fc92e2260c0590f Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sat, 6 Jul 2024 08:47:22 -0700 Subject: [PATCH] terminal: hyperlink capacity adjustment needs to call safe variant --- src/terminal/Screen.zig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/terminal/Screen.zig b/src/terminal/Screen.zig index 04cb79a8a..d99ca0b28 100644 --- a/src/terminal/Screen.zig +++ b/src/terminal/Screen.zig @@ -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(); },