mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 16:26:08 +03:00
core: show URL even for non-OSC8 hyperlnks
This commit is contained in:
@ -2825,7 +2825,14 @@ pub fn cursorPosCallback(
|
|||||||
try self.rt_surface.setMouseShape(.pointer);
|
try self.rt_surface.setMouseShape(.pointer);
|
||||||
|
|
||||||
switch (link[0]) {
|
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: {
|
._open_osc8 => link: {
|
||||||
// Show the URL in the status bar
|
// Show the URL in the status bar
|
||||||
|
Reference in New Issue
Block a user