[vte] regex: Fix match flags not to include MULTILINE



commit 0f7b43b1fdc6844505dd9d847f590365c66804a8
Author: Christian Persch <chpe gnome org>
Date:   Sat Dec 26 19:34:36 2015 +0100

    regex: Fix match flags not to include MULTILINE
    
    G_REGEX_MULTILINE is a compile flag, and thus must be handled
    by the caller, not vte.

 src/vte.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 8868dd2..fdebe52 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -1597,7 +1597,7 @@ VteTerminalPrivate::match_check_gregex(GRegex *regex,
         if (!g_regex_match_full(regex,
                                 line, line_length, /* subject, length */
                                 sattr, /* start position */
-                                GRegexMatchFlags(match_flags | G_REGEX_MULTILINE),
+                                match_flags,
                                 &match_info,
                                 NULL)) {
                 g_match_info_free(match_info);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]