Merge pull request #532 from kyrias/fix-urls

Need to fall back to check_match after hyperlink_check_event
This commit is contained in:
jelle van der Waa 2017-10-28 11:07:26 +02:00 committed by GitHub
commit 1f9ab29f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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