patch 9.0.0159: cannot build with small features
Problem: Cannot build with small features.
Solution: Check for E1170 only with FEAT_EVAL.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index d8a7243..70c5402 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2846,9 +2846,11 @@
{
if (has_cmdmod(cmod, FALSE))
*errormsg = _(e_command_modifier_without_command);
+#ifdef FEAT_EVAL
if (eap->cmd[0] == '#' && eap->cmd[1] == '{'
&& eap->cmd[2] != '{')
*errormsg = _(e_cannot_use_hash_curly_to_start_comment);
+#endif
}
return FAIL;
}