diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-03-31 11:37:57 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-03-31 11:37:57 +0100 |
commit | 4dea2d92e4c308b064ed1dd7b2ba7527a0d6b0a0 (patch) | |
tree | a7be19a7aa8b4a9c4e48084639ad51db96f36db6 /src/errors.h | |
parent | d1d2684c8006105444d249e846576c23d79ad4ee (diff) | |
download | vim-git-4dea2d92e4c308b064ed1dd7b2ba7527a0d6b0a0.tar.gz |
patch 8.2.4653: "import autoload" does not check the file namev8.2.4653
Problem: "import autoload" does not check the file name.
Solution: Give an error if the file is not readable. (closes #10049)
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/errors.h b/src/errors.h index 949a53279..951acabb2 100644 --- a/src/errors.h +++ b/src/errors.h @@ -30,8 +30,9 @@ EXTERN char e_invalid_expression_str[] #endif EXTERN char e_invalid_range[] INIT(= N_("E16: Invalid range")); -#if defined(UNIX) || defined(FEAT_SYN_HL) || defined(FEAT_SPELL) -EXTERN char e_src_is_directory[] +#if defined(UNIX) || defined(FEAT_SYN_HL) \ + || defined(FEAT_SPELL) || defined(FEAT_EVAL) +EXTERN char e_str_is_directory[] INIT(= N_("E17: \"%s\" is a directory")); #endif #ifdef FEAT_EVAL |