diff options
author | raveit65 <[email protected]> | 2016-03-09 14:29:14 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2016-03-09 14:29:14 +0100 |
commit | fe9c280cae33f992afc13981213e89314f2828a1 (patch) | |
tree | a8b5c02a152029480531468fbd76d89f47ca6c64 | |
parent | a3d1c5f081cf3cf820f6854384ad17ea2cc9c79a (diff) | |
download | mate-terminal-fe9c280cae33f992afc13981213e89314f2828a1.tar.bz2 mate-terminal-fe9c280cae33f992afc13981213e89314f2828a1.tar.xz |
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
-rw-r--r-- | src/terminal-screen.c | 6 |
1 files 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); |