0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4912: using execute() to define a lambda doesn't work

Problem:    Using execute() to define a lambda doesn't work. (Ernie Rael)
Solution:   Put the getline function in evalarg. (closes #10375)
This commit is contained in:
Bram Moolenaar
2022-05-07 21:14:05 +01:00
parent 249591057b
commit a7583c42cd
5 changed files with 26 additions and 3 deletions

View File

@@ -140,7 +140,7 @@ fill_evalarg_from_eap(evalarg_T *evalarg, exarg_T *eap, int skip)
if (eap != NULL)
{
evalarg->eval_cstack = eap->cstack;
if (sourcing_a_script(eap))
if (sourcing_a_script(eap) || eap->getline == get_list_line)
{
evalarg->eval_getline = eap->getline;
evalarg->eval_cookie = eap->cookie;