summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-03-03 14:42:11 +0100
committerBram Moolenaar <Bram@vim.org>2019-03-03 14:42:11 +0100
commit975880b6e6de473b512995ef87ce072aaca934cf (patch)
treed13ee3177bfa632013b01ff00c93315f8dbbb2ce /src/search.c
parente21c1580b7acb598a6e3c38565434fe5d0e2ad7a (diff)
downloadvim-git-975880b6e6de473b512995ef87ce072aaca934cf.tar.gz
patch 8.1.0991: cannot build with a mix of featuresv8.1.0991
Problem: Cannot build with FEAT_EVAL defined and FEAT_SEARCH_EXTRA undefined, and with FEAT_DIFF defined and FEAT_EVAL undefined. Solution: Add a couple of #ifdefs. (closes #4067)
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search.c b/src/search.c
index d2554e2d9..850fd06c7 100644
--- a/src/search.c
+++ b/src/search.c
@@ -567,7 +567,9 @@ set_last_search_pat(
saved_spats[idx].pat = NULL;
else
saved_spats[idx].pat = vim_strsave(spats[idx].pat);
+# ifdef FEAT_SEARCH_EXTRA
saved_spats_last_idx = last_idx;
+# endif
}
# ifdef FEAT_SEARCH_EXTRA
/* If 'hlsearch' set and search pat changed: need redraw. */