patch 8.0.1399: warnings and errors when building tiny version
Problem: Warnings and errors when building tiny version. (Tony Mechelynck)
Solution: Add #ifdefs.
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 405e1f6..2a2b08b 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -172,6 +172,7 @@
redraw_cmdline = TRUE;
}
+#ifdef FEAT_SEARCH_EXTRA
/*
* Guess that the pattern matches everything. Only finds specific cases, such
* as a trailing \|, which can happen while typing a pattern.
@@ -187,6 +188,7 @@
n -= 2;
return n == 0 || (n >= 2 && p[n - 2] == '\\' && p[n - 1] == '|');
}
+#endif
/*
* getcmdline() - accept a command line starting with firstc.