[gtksourceview] implregex: include flags from matchinfo creation



commit 56803be23596192ea6472c01e92757e8fbf7cf12
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jul 5 14:44:48 2021 -0700

    implregex: include flags from matchinfo creation

 gtksourceview/implregex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtksourceview/implregex.c b/gtksourceview/implregex.c
index 5e940a91..3e3e839f 100644
--- a/gtksourceview/implregex.c
+++ b/gtksourceview/implregex.c
@@ -1066,7 +1066,7 @@ impl_match_info_next (ImplMatchInfo  *match_info,
        }
        else
        {
-               gsize match_flags = match_info->regex->match_flags;
+               gsize match_flags = match_info->regex->match_flags | match_info->match_flags;
 
                if (match_info->regex->compile_flags & PCRE2_UTF)
                        match_flags |= PCRE2_NO_UTF_CHECK;


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