diff options
Diffstat (limited to 'src/terminal-screen.c')
-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); |