mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4654: missing changes for import check
Problem: Missing changes for import check. Solution: Add missing changes.
This commit is contained in:
@@ -399,7 +399,14 @@ handle_import_fname(char_u *fname, int is_autoload, int *sid)
|
||||
{
|
||||
int error = OK;
|
||||
|
||||
// script does not exist yet, create a new scriptitem
|
||||
// Script does not exist yet, check name and create a new
|
||||
// scriptitem.
|
||||
if (!file_is_readable(fname))
|
||||
{
|
||||
semsg(_(mch_isdir(fname) ? e_str_is_directory
|
||||
: e_cannot_read_from_str_2), fname);
|
||||
return FAIL;
|
||||
}
|
||||
*sid = get_new_scriptitem_for_fname(&error, fname);
|
||||
if (error == FAIL)
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user