summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-12-17 14:55:01 +0100
committerBram Moolenaar <Bram@vim.org>2017-12-17 14:55:01 +0100
commitee219b0e9faab4b7159ed1725c5b82cea4f4d4f8 (patch)
tree0747f437d281c97bb250cd7cf238000a593c0918 /src/ex_getln.c
parent9e1d399e63903c6f84d7888ad8d84ebf4e29d8a1 (diff)
downloadvim-git-ee219b0e9faab4b7159ed1725c5b82cea4f4d4f8.tar.gz
patch 8.0.1399: warnings and errors when building tiny versionv8.0.1399
Problem: Warnings and errors when building tiny version. (Tony Mechelynck) Solution: Add #ifdefs.
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 405e1f655..2a2b08ba2 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -172,6 +172,7 @@ abandon_cmdline(void)
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 @@ empty_pattern(char_u *p)
n -= 2;
return n == 0 || (n >= 2 && p[n - 2] == '\\' && p[n - 1] == '|');
}
+#endif
/*
* getcmdline() - accept a command line starting with firstc.