mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.3175: Vim9: using illegal pointer with nested lambdas.
Problem: Vim9: using illegal pointer with inline function inside a lambda. Solution: Clear eval_tofree_cmdline when advancing to the next line. (closes #8578)
This commit is contained in:
@@ -2177,6 +2177,11 @@ eval_next_line(evalarg_T *evalarg)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user