From be3eec81c01105dc947725e251d1f68844b0d37e Mon Sep 17 00:00:00 2001 From: Daniel Pfeifer Date: Tue, 26 Apr 2016 11:59:37 +0200 Subject: [PATCH] compile url_regex with G_REGEX_MULTILINE vte_terminal_match_add_gregex wants that to be set. see: https://github.com/thestinger/vte-ng/blob/0.44.1-ng/src/vtegtk.cc#L1718 --- termite.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/termite.cc b/termite.cc index 8807020..e28c435 100644 --- a/termite.cc +++ b/termite.cc @@ -1388,13 +1388,12 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info, } if (info->clickable_url) { - info->tag = - vte_terminal_match_add_gregex(vte, - g_regex_new(url_regex, - G_REGEX_CASELESS, - G_REGEX_MATCH_NOTEMPTY, - nullptr), - (GRegexMatchFlags)0); + info->tag = vte_terminal_match_add_gregex(vte, + g_regex_new(url_regex, + (GRegexCompileFlags)(G_REGEX_CASELESS | G_REGEX_MULTILINE), + G_REGEX_MATCH_NOTEMPTY, + nullptr), + (GRegexMatchFlags)0); vte_terminal_match_set_cursor_type(vte, info->tag, GDK_HAND2); } else if (info->tag != -1) { vte_terminal_match_remove(vte, info->tag);