diff src/ex_docmd.c @ 23372:86d155b29dd7 v8.2.2229

patch 8.2.2229: build failure without the +eval feature Commit: https://github.com/vim/vim/commit/39cb2dab18e85fc60f116a4543e433616872b690 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Dec 27 17:35:18 2020 +0100 patch 8.2.2229: build failure without the +eval feature Problem: build failure without the +eval feature. Solution: Add #ifdef.
author Bram Moolenaar <Bram@vim.org>
date Sun, 27 Dec 2020 17:45:04 +0100
parents 622e90acea5d
children 8e956ea07bb2
line wrap: on
line diff
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -8633,7 +8633,9 @@ eval_vars(
 	switch (spec_idx)
 	{
 	case SPEC_PERC:
+#ifdef FEAT_EVAL
 		if (!in_vim9script() || src[1] != '%')
+#endif
 		{
 		    // '%': current file
 		    if (curbuf->b_fname == NULL)
@@ -8648,9 +8650,11 @@ eval_vars(
 		    }
 		    break;
 		}
+#ifdef FEAT_EVAL
 		// "%%" alternate file
 		off = 1;
 		// FALLTHROUGH
+#endif
 
 	case SPEC_HASH:		// '#' or "#99": alternate file
 		if (off == 0 ? src[1] == '#' : src[2] == '%')