core: enable link hovering

This commit is contained in:
Mitchell Hashimoto
2024-03-15 20:41:10 -07:00
parent d664840b7f
commit 5664c3e3c9

View File

@ -2485,10 +2485,12 @@ fn linkAtPos(
.semantic_prompt_boundary = false,
}) orelse return null;
// TODO(paged-terminal)
if (true) return null;
const strmap = try line.stringMap(self.alloc);
var strmap: terminal.StringMap = undefined;
self.alloc.free(try screen.selectionString(self.alloc, .{
.sel = line,
.trim = false,
.map = &strmap,
}));
defer strmap.deinit(self.alloc);
// Go through each link and see if we clicked it