From 425c86179791cd32e2d4ce0ae7f269940b4b0663 Mon Sep 17 00:00:00 2001 From: Can Celik Date: Thu, 10 Sep 2026 21:51:57 +0300 Subject: chore: upgrade libghostty and preserve terminal behavior (#3906) --- vendor/libghostty-vt/src/crash/sentry_envelope.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vendor/libghostty-vt/src/crash/sentry_envelope.zig') diff --git a/vendor/libghostty-vt/src/crash/sentry_envelope.zig b/vendor/libghostty-vt/src/crash/sentry_envelope.zig index 08573b73..0472bcbe 100644 --- a/vendor/libghostty-vt/src/crash/sentry_envelope.zig +++ b/vendor/libghostty-vt/src/crash/sentry_envelope.zig @@ -93,7 +93,7 @@ pub const Envelope = struct { alloc: Allocator, reader: *std.Io.Reader, ) !std.ArrayList(Item) { - var items: std.ArrayList(Item) = .{}; + var items: std.ArrayList(Item) = .empty; errdefer items.deinit(alloc); while (try parseOneItem(alloc, reader)) |item| { try items.append(alloc, item); @@ -391,7 +391,7 @@ pub const Attachment = struct { else => return error.InvalidFieldType, } else null, - .headers_extra = item.headers.unmanaged, + .headers_extra = item.headers, .payload = item.payload, }; } @@ -417,7 +417,7 @@ pub const Attachment = struct { } return .{ - .headers = self.headers_extra.promote(alloc), + .headers = self.headers_extra, .type = .attachment, .payload = self.payload, }; -- cgit v1.2.3