mirror of
https://github.com/tmux/tmux.git
synced 2025-09-01 20:57:00 +00:00
Support hyperlinks with capture-pane -e and add a mouse_hyperlink
format, GitHub issue 3247 from Jeff Chiang.
This commit is contained in:
2
tty.c
2
tty.c
@ -2501,7 +2501,7 @@ tty_hyperlink(struct tty *tty, const struct grid_cell *gc,
|
||||
if (hl == NULL)
|
||||
return;
|
||||
|
||||
if (gc->link == 0 || !hyperlinks_get(hl, gc->link, &uri, &id))
|
||||
if (gc->link == 0 || !hyperlinks_get(hl, gc->link, &uri, NULL, &id))
|
||||
tty_putcode_ptr2(tty, TTYC_HLS, "", "");
|
||||
else
|
||||
tty_putcode_ptr2(tty, TTYC_HLS, id, uri);
|
||||
|
Reference in New Issue
Block a user