Problem: Vim9: using illegal pointer with inline function inside a lambda.
Solution: Clear eval_tofree_cmdline when advancing to the next line.
(closes #8578)
vim_free(evalarg->eval_tofree);
evalarg->eval_tofree = line;
}
+
+ // Advanced to the next line, "arg" no longer points into the previous
+ // line.
+ VIM_CLEAR(evalarg->eval_tofree_cmdline);
+
return skipwhite(line);
}
})
END
CheckScriptSuccess(lines)
+
+ lines =<< trim END
+ vim9script
+
+ def s:func()
+ range(10)
+ ->mapnew((_, _) => ({
+ key: range(10)->mapnew((_, _) => {
+ return ' '
+ }),
+ }))
+ enddef
+
+ defcomp
+ END
+ CheckScriptSuccess(lines)
enddef
def Shadowed(): list<number>
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 3175,
/**/
3174,
/**/