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)
diff --git a/src/evalfunc.c b/src/evalfunc.c
index 667d4f3..efade6c 100644
--- a/src/evalfunc.c
+++ b/src/evalfunc.c
@@ -3868,7 +3868,7 @@
* Called by do_cmdline() to get the next line.
* Returns allocated string, or NULL for end of function.
*/
- static char_u *
+ char_u *
get_list_line(
int c UNUSED,
void *cookie,