core: show URL even for non-OSC8 hyperlnks

This commit is contained in:
Mitchell Hashimoto
2024-07-06 21:36:28 -07:00
parent 571182fb60
commit c9accc52e2

View File

@ -2825,7 +2825,14 @@ pub fn cursorPosCallback(
try self.rt_surface.setMouseShape(.pointer);
switch (link[0]) {
.open => {},
.open => {
const str = try self.io.terminal.screen.selectionString(self.alloc, .{
.sel = link[1],
.trim = false,
});
defer self.alloc.free(str);
self.rt_surface.mouseOverLink(str);
},
._open_osc8 => link: {
// Show the URL in the status bar