Need to fall back to check_match after hyperlink_check_event
vte_terminal_hyperlink_check_event only matches explicit OSC 8 marked hyperlinks, so we still need to fall back to the existing check_match function for the vast majority of URLs to be clickable. Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
14ee4ff101
commit
459a8258a8
|
@ -1171,6 +1171,9 @@ gboolean button_press_cb(VteTerminal *vte, GdkEventButton *event, const config_i
|
|||
if (info->clickable_url && event->type == GDK_BUTTON_PRESS) {
|
||||
#if VTE_CHECK_VERSION (0, 49, 1)
|
||||
auto match = make_unique(vte_terminal_hyperlink_check_event(vte, (GdkEvent*)event), g_free);
|
||||
if (!match) {
|
||||
match = make_unique(check_match(vte, event), g_free);
|
||||
}
|
||||
#else
|
||||
auto match = make_unique(check_match(vte, event), g_free);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue