Merge pull request #345 from purpleKarrot/master
compile url_regex with G_REGEX_MULTILINE
This commit is contained in:
commit
3170adffa7
13
termite.cc
13
termite.cc
|
@ -1400,13 +1400,12 @@ static void set_config(GtkWindow *window, VteTerminal *vte, config_info *info,
|
||||||
}
|
}
|
||||||
|
|
||||||
if (info->clickable_url) {
|
if (info->clickable_url) {
|
||||||
info->tag =
|
info->tag = vte_terminal_match_add_gregex(vte,
|
||||||
vte_terminal_match_add_gregex(vte,
|
g_regex_new(url_regex,
|
||||||
g_regex_new(url_regex,
|
(GRegexCompileFlags)(G_REGEX_CASELESS | G_REGEX_MULTILINE),
|
||||||
G_REGEX_CASELESS,
|
G_REGEX_MATCH_NOTEMPTY,
|
||||||
G_REGEX_MATCH_NOTEMPTY,
|
nullptr),
|
||||||
nullptr),
|
(GRegexMatchFlags)0);
|
||||||
(GRegexMatchFlags)0);
|
|
||||||
vte_terminal_match_set_cursor_type(vte, info->tag, GDK_HAND2);
|
vte_terminal_match_set_cursor_type(vte, info->tag, GDK_HAND2);
|
||||||
} else if (info->tag != -1) {
|
} else if (info->tag != -1) {
|
||||||
vte_terminal_match_remove(vte, info->tag);
|
vte_terminal_match_remove(vte, info->tag);
|
||||||
|
|
Loading…
Reference in New Issue