diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-06 11:03:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-06 11:03:55 +0000 |
commit | 6409553b6e3b4de4e1d72b8ee5445595214581ff (patch) | |
tree | 1b24d5f956763a1bc7a5b47fc9875598d0d438d6 /src/if_tcl.c | |
parent | 40bcec1bac34d34a3d4d7c5f6b2cc1f163acbd00 (diff) |
patch 8.2.3751: cannot assign a lambda to an option that takes a functionv8.2.3751
Problem: Cannot assign a lambda to an option that takes a function.
Solution: Automatically convert the lambda to a string. (Yegappan
Lakshmanan, closes #9286)
Diffstat (limited to 'src/if_tcl.c')
-rw-r--r-- | src/if_tcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/if_tcl.c b/src/if_tcl.c index 4838e31976..75fa858e8e 100644 --- a/src/if_tcl.c +++ b/src/if_tcl.c @@ -1308,7 +1308,7 @@ tclsetoption( 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) { |