screen: Compile dingu regexes with MULTILINE option

this kills warnings with newer vte.
taken from (but adjusted):
https://git.gnome.org/browse/gnome-terminal/commit/?id=9e0ea90
master-1.22
raveit65 2016-03-09 14:29:14 +01:00
parent a3d1c5f081
commit fe9c280cae
1 changed files with 4 additions and 2 deletions

View File

@ -618,7 +618,7 @@ terminal_screen_class_init (TerminalScreenClass *klass)
GError *error = NULL; GError *error = NULL;
url_regexes[i] = g_regex_new (url_regex_patterns[i].pattern, url_regexes[i] = g_regex_new (url_regex_patterns[i].pattern,
url_regex_patterns[i].flags | G_REGEX_OPTIMIZE, url_regex_patterns[i].flags | G_REGEX_OPTIMIZE | G_REGEX_MULTILINE,
0, &error); 0, &error);
if (error) if (error)
{ {
@ -637,7 +637,9 @@ terminal_screen_class_init (TerminalScreenClass *klass)
{ {
GError *error = NULL; GError *error = NULL;
skey_regexes[i] = g_regex_new (skey_regex_patterns[i].pattern, G_REGEX_OPTIMIZE, 0, &error); skey_regexes[i] = g_regex_new (skey_regex_patterns[i].pattern,
G_REGEX_OPTIMIZE | G_REGEX_MULTILINE,
0, &error);
if (error) if (error)
{ {
g_message ("%s", error->message); g_message ("%s", error->message);