diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-30 18:25:08 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-30 18:25:08 +0000 |
commit | eba3b7f6645c8f856132b4c06a009a3b0a44e21c (patch) | |
tree | 020a6f90c5d1d78881e237b5339e63a59b266769 /src/evalfunc.c | |
parent | ab36e6ae7b87b0295fb19270e4339a734875c6b1 (diff) |
patch 8.2.3705: cannot pass a lambda name to function() or funcref()v8.2.3705
Problem: Cannot pass a lambda name to function() or funcref(). (Yegappan
Lakshmanan)
Solution: Handle a lambda name differently.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index e04052b8ac..d0b80bea83 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -3955,9 +3955,8 @@ common_function(typval_T *argvars, typval_T *rettv, int is_funcref) if ((use_string && vim_strchr(s, AUTOLOAD_CHAR) == NULL) || is_funcref) { name = s; - trans_name = trans_function_name(&name, &is_global, FALSE, - TFN_INT | TFN_QUIET | TFN_NO_AUTOLOAD | TFN_NO_DEREF, - NULL, NULL, NULL); + trans_name = save_function_name(&name, &is_global, FALSE, + TFN_INT | TFN_QUIET | TFN_NO_AUTOLOAD | TFN_NO_DEREF, NULL); if (*name != NUL) s = NULL; } |