diff options
author | Christian Persch <chpe@gnome.org> | 2015-09-30 22:17:17 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-09-30 22:17:17 +0200 |
commit | d4ac47aa0bad6fb6a5c2b12b69631bf57a306b1f (patch) | |
tree | fe035b70d96f67bc063fd816ff157e74a0200792 | |
parent | 45e0311928e8d6170b06b5210946215d35753882 (diff) | |
download | vte-d4ac47aa0bad6fb6a5c2b12b69631bf57a306b1f.tar.gz |
search: Fix crashing typo
https://bugzilla.gnome.org/show_bug.cgi?id=755900
-rw-r--r-- | src/vte.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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), |