mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
patch 8.2.1753: Vim9: crash when using import at script level
Problem: Vim9: crash when using import at script level. Solution: Give a "not implemented yet" error. (closes #7026)
This commit is contained in:
parent
daff0fb738
commit
f6a44f714a
@ -2486,6 +2486,11 @@ eval_variable(
|
|||||||
rettv->vval.v_string = vim_strsave(import->imp_funcname);
|
rettv->vval.v_string = vim_strsave(import->imp_funcname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (import->imp_all)
|
||||||
|
{
|
||||||
|
emsg("Sorry, 'import * as X' not implemented yet");
|
||||||
|
ret = FAIL;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
|
scriptitem_T *si = SCRIPT_ITEM(import->imp_sid);
|
||||||
|
@ -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 */
|
||||||
|
/**/
|
||||||
|
1753,
|
||||||
/**/
|
/**/
|
||||||
1752,
|
1752,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user