patch 8.2.3751: cannot assign a lambda to an option that takes a function
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286)
diff --git a/src/if_tcl.c b/src/if_tcl.c
index 4838e31..75fa858 100644
--- a/src/if_tcl.c
+++ b/src/if_tcl.c
@@ -1308,7 +1308,7 @@
option = (char_u *)Tcl_GetStringFromObj(objv[objn], NULL);
++objn;
- gov = get_option_value(option, &lval, &sval, 0);
+ gov = get_option_value(option, &lval, &sval, NULL, 0);
err = TCL_OK;
switch (gov)
{