Mercurial > vim
diff src/ex_getln.c @ 13047:669c4f75a69e v8.0.1399
patch 8.0.1399: warnings and errors when building tiny version
commit https://github.com/vim/vim/commit/ee219b0e9faab4b7159ed1725c5b82cea4f4d4f8
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Dec 17 14:55:01 2017 +0100
patch 8.0.1399: warnings and errors when building tiny version
Problem: Warnings and errors when building tiny version. (Tony Mechelynck)
Solution: Add #ifdefs.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 17 Dec 2017 15:00:05 +0100 |
parents | 5f3aff09d8f8 |
children | fe7d576a3d3f |
line wrap: on
line diff
--- 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.