mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.1418: Vim9: invalid error for missing white space
Problem: Vim9: invalid error for missing white space after function. Solution: Do not skip over white space. (closes #6679)
This commit is contained in:
@@ -686,7 +686,10 @@ get_func_tv(
|
||||
while (--argcount >= 0)
|
||||
clear_tv(&argvars[argcount]);
|
||||
|
||||
*arg = skipwhite(argp);
|
||||
if (in_vim9script())
|
||||
*arg = argp;
|
||||
else
|
||||
*arg = skipwhite(argp);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -4097,6 +4100,7 @@ ex_call(exarg_T *eap)
|
||||
if (!failed || eap->cstack->cs_trylevel > 0)
|
||||
{
|
||||
// Check for trailing illegal characters and a following command.
|
||||
arg = skipwhite(arg);
|
||||
if (!ends_excmd2(eap->arg, arg))
|
||||
{
|
||||
if (!failed)
|
||||
|
Reference in New Issue
Block a user