Mercurial > vim
diff src/ex_docmd.c @ 10490:8f2191b56d52 v8.0.0138
commit https://github.com/vim/vim/commit/b094ff4b2be4d8b7364c566a1cc7e27aa4452a50
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 2 16:16:39 2017 +0100
patch 8.0.0138
Problem: Small build fails.
Solution: Add #ifdef.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 02 Jan 2017 16:30:03 +0100 |
parents | 89200fa1d174 |
children | b2cd5a71f4bb |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -789,7 +789,11 @@ do_cmdline( /* It's possible to create an endless loop with ":execute", catch that * here. The value of 200 allows nested function calls, ":source", etc. * Allow 200 or 'maxfuncdepth', whatever is larger. */ - if (call_depth >= 200 && call_depth >= p_mfd) + if (call_depth >= 200 +#ifdef FEAT_EVAL + && call_depth >= p_mfd +#endif + ) { EMSG(_("E169: Command too recursive")); #ifdef FEAT_EVAL