Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam
2025-03-24 22:01:11 +00:00
8 changed files with 125 additions and 34 deletions

View File

@ -5432,9 +5432,14 @@ format_grid_hyperlink(struct grid *gd, u_int x, u_int y, struct screen* s)
const char *uri;
struct grid_cell gc;
grid_get_cell(gd, x, y, &gc);
if (gc.flags & GRID_FLAG_PADDING)
return (NULL);
for (;;) {
grid_get_cell(gd, x, y, &gc);
if (~gc.flags & GRID_FLAG_PADDING)
break;
if (x == 0)
return (NULL);
x--;
}
if (s->hyperlinks == NULL || gc.link == 0)
return (NULL);
if (!hyperlinks_get(s->hyperlinks, gc.link, &uri, NULL, NULL))