forked from aniani/vim
patch 8.2.1311: test failures with legacy Vim script
Problem: Test failures with legacy Vim script. Solution: Actually check for Vim9 script.
This commit is contained in:
@@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1311,
|
||||||
/**/
|
/**/
|
||||||
1310,
|
1310,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -64,16 +64,17 @@ ex_vim9script(exarg_T *eap)
|
|||||||
int
|
int
|
||||||
not_in_vim9(exarg_T *eap)
|
not_in_vim9(exarg_T *eap)
|
||||||
{
|
{
|
||||||
switch (eap->cmdidx)
|
if (in_vim9script())
|
||||||
{
|
switch (eap->cmdidx)
|
||||||
case CMD_insert:
|
{
|
||||||
case CMD_append:
|
case CMD_insert:
|
||||||
case CMD_change:
|
case CMD_append:
|
||||||
case CMD_xit:
|
case CMD_change:
|
||||||
semsg(_("E1100: Missing :let: %s"), eap->cmd);
|
case CMD_xit:
|
||||||
return FAIL;
|
semsg(_("E1100: Missing :let: %s"), eap->cmd);
|
||||||
default: break;
|
return FAIL;
|
||||||
}
|
default: break;
|
||||||
|
}
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user