Fix mouse_hyperlink format in copy mode. From someone in GitHub issue

4418.
This commit is contained in:
nicm
2025-03-21 14:04:26 +00:00
parent a541be3951
commit f101762d1b
3 changed files with 17 additions and 0 deletions

View File

@ -884,6 +884,16 @@ window_copy_get_line(struct window_pane *wp, u_int y)
return (format_grid_line(gd, gd->hsize + y));
}
char *
window_copy_get_hyperlink(struct window_pane *wp, u_int x, u_int y)
{
struct window_mode_entry *wme = TAILQ_FIRST(&wp->modes);
struct window_copy_mode_data *data = wme->data;
struct grid *gd = data->screen.grid;
return (format_grid_hyperlink(gd, x, gd->hsize + y, wp->screen));
}
static void *
window_copy_cursor_hyperlink_cb(struct format_tree *ft)
{