summaryrefslogtreecommitdiff
path: root/src/Surface.zig
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-07-21 11:00:49 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-07-21 12:56:03 -0700
commit58ccfb558a05e2411c80256448a3c86b8991ac10 (patch)
tree0592f28971f342a5dce82319181bf0094fdd5d1e /src/Surface.zig
parent7711f6b5b695cd8a9dd54804255e7e50eca6eadb (diff)
apprt/gtk-ng: mouse over link to show tooltip
Diffstat (limited to 'src/Surface.zig')
-rw-r--r--src/Surface.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Surface.zig b/src/Surface.zig
index a9a7e239f..1ab0fc59e 100644
--- a/src/Surface.zig
+++ b/src/Surface.zig
@@ -1316,9 +1316,7 @@ fn mouseRefreshLinks(
break :link .{ null, false };
};
break :link .{
- .{
- .url = uri,
- },
+ .{ .url = try alloc.dupeZ(u8, uri) },
self.config.link_previews != .false,
};
},