mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1425: Vim9: cannot use call() without :call
Problem: Vim9: cannot use call() without :call. Solution: Do not skip over "call(". (closes #6689)
This commit is contained in:
@@ -6484,8 +6484,15 @@ compile_def_function(ufunc_T *ufunc, int set_return_type, cctx_T *outer_cctx)
|
||||
cmdmod = save_cmdmod;
|
||||
|
||||
// Skip ":call" to get to the function name.
|
||||
p = ea.cmd;
|
||||
if (checkforcmd(&ea.cmd, "call", 3))
|
||||
ea.cmd = skipwhite(ea.cmd);
|
||||
{
|
||||
if (*ea.cmd == '(')
|
||||
// not for "call()"
|
||||
ea.cmd = p;
|
||||
else
|
||||
ea.cmd = skipwhite(ea.cmd);
|
||||
}
|
||||
|
||||
if (!starts_with_colon)
|
||||
{
|
||||
|
Reference in New Issue
Block a user