[vte] search: Fix crashing typo



commit d4ac47aa0bad6fb6a5c2b12b69631bf57a306b1f
Author: Christian Persch <chpe gnome org>
Date:   Wed Sep 30 22:17:17 2015 +0200

    search: Fix crashing typo
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755900

 src/vte.cc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index 0d54c6f..2643d1e 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -13727,7 +13727,7 @@ vte_terminal_search_set_gregex (VteTerminal *terminal,
         regex_and_flags_clear(search_regex);
 
         if (gregex != NULL) {
-                search_regex->mode = VTE_REGEX_PCRE2;
+                search_regex->mode = VTE_REGEX_GREGEX;
                 search_regex->gregex.regex = g_regex_ref(gregex);
                 search_regex->gregex.match_flags = gflags;
         }
@@ -13851,7 +13851,7 @@ vte_terminal_search_rows(VteTerminal *terminal,
                 GMatchInfo *match_info;
                 GError *error = NULL;
 
-                g_assert_cmpuint(pvt->search_regex.mode, ==, VTE_REGEX_GREGEX);
+                g_assert_cmpint(pvt->search_regex.mode, ==, VTE_REGEX_GREGEX);
 
                 g_regex_match_full (pvt->search_regex.gregex.regex, row_text, row_text_length, 0,
                                     (GRegexMatchFlags)(pvt->search_regex.gregex.match_flags | 
G_REGEX_MATCH_NOTEMPTY),


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