1
0
forked from aniani/vim

patch 8.2.4653: "import autoload" does not check the file name

Problem:    "import autoload" does not check the file name.
Solution:   Give an error if the file is not readable. (closes #10049)
This commit is contained in:
Bram Moolenaar
2022-03-31 11:37:57 +01:00
parent d1d2684c80
commit 4dea2d92e4
8 changed files with 39 additions and 27 deletions

View File

@@ -8386,7 +8386,7 @@ open_exfile(
// with Unix it is possible to open a directory
if (mch_isdir(fname))
{
semsg(_(e_src_is_directory), fname);
semsg(_(e_str_is_directory), fname);
return NULL;
}
#endif