mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4654,
|
||||||
/**/
|
/**/
|
||||||
4653,
|
4653,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -399,7 +399,14 @@ handle_import_fname(char_u *fname, int is_autoload, int *sid)
|
|||||||
{
|
{
|
||||||
int error = OK;
|
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);
|
*sid = get_new_scriptitem_for_fname(&error, fname);
|
||||||
if (error == FAIL)
|
if (error == FAIL)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
|
Reference in New Issue
Block a user