diff options
author | Christian Persch <chpe@gnome.org> | 2015-09-30 20:26:35 +0200 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2015-09-30 20:26:35 +0200 |
commit | ce0aaa93f877b5920cae419c5861b24209944a5c (patch) | |
tree | a61a5f6452cd56e9d0ff1852d0f90463f8315305 | |
parent | 6d8980f7476c9e19aa4631ce071d67b9528be409 (diff) | |
download | vte-ce0aaa93f877b5920cae419c5861b24209944a5c.tar.gz |
vteapp: Fix build without pcre2
-rw-r--r-- | src/app.vala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app.vala b/src/app.vala index 0b8d1561..7155d578 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 |