[vte] vteapp: Fix build without pcre2



commit ce0aaa93f877b5920cae419c5861b24209944a5c
Author: Christian Persch <chpe gnome org>
Date:   Wed Sep 30 20:26:35 2015 +0200

    vteapp: Fix build without pcre2

 src/app.vala |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 0b8d156..7155d57 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -156,14 +156,20 @@ class SearchPopover : Gtk.Popover
 
         regex_pattern = pattern;
       } catch (Error e) {
+#if WITH_PCRE2
         regex = null;
+#endif
+        gregex = null;
       }
     } else {
+#if WITH_PCRE2
       regex = null;
+#endif
+      gregex = null;
     }
 
 #if WITH_PCRE2
-    if (regex != null)
+    if (!App.Options.no_pcre)
       terminal.search_set_regex(regex, 0);
     else
 #endif


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