Mercurial > vim
diff src/errors.h @ 27960:be693de40634 v8.2.4505
patch 8.2.4505: Vim9: outdated "autocmd nested" still works
Commit: https://github.com/vim/vim/commit/f07751457c39a645009c17cd837131f6bcdd7d55
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Mar 4 20:10:38 2022 +0000
patch 8.2.4505: Vim9: outdated "autocmd nested" still works
Problem: Vim9: outdated "autocmd nested" still works.
Solution: Do not accept the :autocmd argument "nested" without "++" in Vim9
script.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Mar 2022 21:15:02 +0100 |
parents | aacc98a38cf3 |
children | 0fa3be75ddc7 |
line wrap: on
line diff
--- a/src/errors.h +++ b/src/errors.h @@ -2786,7 +2786,10 @@ EXTERN char e_this_vim_is_not_compiled_w # 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[]