diff options
| author | Can Celik <ogulcancelik@gmail.com> | 2026-09-10 21:51:57 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-10 21:51:57 +0300 |
| commit | 425c86179791cd32e2d4ce0ae7f269940b4b0663 (patch) | |
| tree | e52c4383a6d69216cbe2a32638bf90841d7e2189 /vendor/libghostty-vt/src/terminal/hyperlink.zig | |
| parent | 90e947a6e26e02f10ec7f1694c4eb5b78a86406b (diff) | |
chore: upgrade libghostty and preserve terminal behavior (#3906)
Diffstat (limited to 'vendor/libghostty-vt/src/terminal/hyperlink.zig')
| -rw-r--r-- | vendor/libghostty-vt/src/terminal/hyperlink.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/libghostty-vt/src/terminal/hyperlink.zig b/vendor/libghostty-vt/src/terminal/hyperlink.zig index 35a16a2a..68f914f8 100644 --- a/vendor/libghostty-vt/src/terminal/hyperlink.zig +++ b/vendor/libghostty-vt/src/terminal/hyperlink.zig @@ -194,12 +194,12 @@ pub const PageEntry = struct { const alloc = &page.string_alloc; switch (self.id) { .implicit => {}, - .explicit => |v| alloc.free( + .explicit => |v| if (v.len > 0) alloc.free( page.memory, v.slice(page.memory), ), } - alloc.free( + if (self.uri.len > 0) alloc.free( page.memory, self.uri.slice(page.memory), ); |
