summaryrefslogtreecommitdiffstats
path: root/src/errors.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-03-04 20:10:38 +0000
committerBram Moolenaar <Bram@vim.org>2022-03-04 20:10:38 +0000
commitf07751457c39a645009c17cd837131f6bcdd7d55 (patch)
tree119f5f4f97b44fa75496ec1d690c855bc16af8c3 /src/errors.h
parent196c3850dbe95247f7aa1b0000a5cae625a99ef2 (diff)
patch 8.2.4505: Vim9: outdated "autocmd nested" still worksv8.2.4505
Problem: Vim9: outdated "autocmd nested" still works. Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9 script.
Diffstat (limited to 'src/errors.h')
-rw-r--r--src/errors.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/errors.h b/src/errors.h
index 5ac7b3f3f7..e08186ef2f 100644
--- a/src/errors.h
+++ b/src/errors.h
@@ -2786,7 +2786,10 @@ EXTERN char e_this_vim_is_not_compiled_with_float_support[]
# endif
EXTERN char e_missing_argument_type_for_str[]
INIT(= N_("E1077: Missing argument type for %s"));
-// E1078 unused
+#endif
+EXTERN char e_invalid_command_nested_did_you_mean_plusplus_nested[]
+ INIT(= N_("E1078: Invalid command \"nested\", did you mean \"++nested\"?"));
+#ifdef FEAT_EVAL
EXTERN char e_cannot_declare_variable_on_command_line[]
INIT(= N_("E1079: Cannot declare a variable on the command line"));
EXTERN char e_invalid_assignment[]