Add -H flag to capture-pane to show hyperlinks.

This commit is contained in:
nicm
2026-06-07 20:03:02 +00:00
parent ae5e0e8c05
commit a532f4868f
4 changed files with 83 additions and 13 deletions

2
grid.c
View File

@@ -125,6 +125,8 @@ grid_extended_cell(struct grid_line *gl, struct grid_cell_entry *gce,
else if (gce->offset >= gl->extdsize)
fatalx("offset too big");
gl->flags |= GRID_LINE_EXTENDED;
if (gc->link != 0)
gl->flags |= GRID_LINE_HYPERLINK;
if (gc->flags & GRID_FLAG_TAB)
uc = gc->data.width;