[gnome-terminal] regex: Fix for new vte API
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] regex: Fix for new vte API
- Date: Sat, 19 Mar 2016 14:47:56 +0000 (UTC)
commit 45bcfb8d125a8396e54b106c49f7b5107580ca21
Author: Christian Persch <chpe gnome org>
Date: Sat Mar 19 15:47:35 2016 +0100
regex: Fix for new vte API
src/terminal-screen.c | 6 +++---
src/terminal-search-popover.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/terminal-screen.c b/src/terminal-screen.c
index 33a34ab..d7858b2 100644
--- a/src/terminal-screen.c
+++ b/src/terminal-screen.c
@@ -244,9 +244,9 @@ precompile_regexes (const TerminalRegexPattern *regex_patterns,
GError *error = NULL;
#ifdef WITH_PCRE2
- (*regexes)[i] = vte_regex_new (regex_patterns[i].pattern, -1,
- PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_MULTILINE,
- &error);
+ (*regexes)[i] = vte_regex_new_for_match (regex_patterns[i].pattern, -1,
+ PCRE2_UTF | PCRE2_NO_UTF_CHECK | PCRE2_MULTILINE,
+ &error);
g_assert_no_error (error);
if (!vte_regex_jit ((*regexes)[i], PCRE2_JIT_COMPLETE, &error) ||
diff --git a/src/terminal-search-popover.c b/src/terminal-search-popover.c
index 222354b..198dc64 100644
--- a/src/terminal-search-popover.c
+++ b/src/terminal-search-popover.c
@@ -303,7 +303,7 @@ update_regex (TerminalSearchPopover *popover)
if (multiline)
compile_flags |= PCRE2_MULTILINE;
- priv->regex = vte_regex_new (pattern, -1, compile_flags, &error);
+ priv->regex = vte_regex_new_for_search (pattern, -1, compile_flags, &error);
if (priv->regex != NULL &&
(!vte_regex_jit (priv->regex, PCRE2_JIT_COMPLETE, NULL) ||
!vte_regex_jit (priv->regex, PCRE2_JIT_PARTIAL_SOFT, NULL))) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]