0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0159: cannot build with small features

Problem:    Cannot build with small features.
Solution:   Check for E1170 only with FEAT_EVAL.
This commit is contained in:
Bram Moolenaar
2022-08-06 22:13:03 +01:00
parent 48ca24d913
commit da70cf30ef
3 changed files with 8 additions and 0 deletions

View File

@@ -2846,9 +2846,11 @@ parse_command_modifiers(
{
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;
}