diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-08 17:03:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-08 17:03:55 +0000 |
commit | 7c24dfddc28776eeff7464982ae5b94e187b6135 (patch) | |
tree | 2b84bb1e2900eeaf8a892830bb01a35dfe7b9dfd /src/errors.h | |
parent | 04935fb17e5f0f66b82cf4546b9752d3d1fa650e (diff) | |
download | vim-git-7c24dfddc28776eeff7464982ae5b94e187b6135.tar.gz |
patch 8.2.4044: Vim9: no error when importing the same script twicev8.2.4044
Problem: Vim9: no error when importing the same script twice.
Solution: Give an error, unless it is a reload.
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 9facb82c4..8e7ffee18 100644 --- a/src/errors.h +++ b/src/errors.h @@ -2891,3 +2891,5 @@ EXTERN char e_cannot_unlet_imported_item_str[] INIT(= N_("E1260: Cannot unlet an imported item: %s")); EXTERN char e_cannot_import_dot_vim_without_using_as[] INIT(= N_("E1261: Cannot import .vim without using \"as\"")); +EXTERN char e_cannot_import_same_script_twice_str[] + INIT(= N_("E1262: Cannot import the same script twice: %s")); |