From fe9c280cae33f992afc13981213e89314f2828a1 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Wed, 9 Mar 2016 14:29:14 +0100 Subject: [PATCH] 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 --- src/terminal-screen.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/terminal-screen.c b/src/terminal-screen.c index 8ede9c4..3bf57b1 100644 --- a/src/terminal-screen.c +++ b/src/terminal-screen.c @@ -618,7 +618,7 @@ terminal_screen_class_init (TerminalScreenClass *klass) GError *error = NULL; 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); if (error) { @@ -637,7 +637,9 @@ terminal_screen_class_init (TerminalScreenClass *klass) { 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) { g_message ("%s", error->message);