diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-12-01 10:30:07 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-01 10:30:07 +0000 |
commit | 05e59e3a9ffddbf93c7af02cd2ba1d0f822d4625 (patch) | |
tree | b178bddbd7f7ea74e4dee6dbf762f79ff6e6aaa6 /src/option.c | |
parent | 56a8ffdb6e903615ed824a503f5fa6382b5b3df5 (diff) |
patch 8.2.3712: cannot use Vim9 lambda for 'tagfunc'v8.2.3712
Problem: Cannot use Vim9 lambda for 'tagfunc'.
Solution: Make it work, add more tests. (Yegappan Lakshmanan, closes #9250)
Diffstat (limited to 'src/option.c')
-rw-r--r-- | src/option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/option.c b/src/option.c index fd1910c6d7..94468d2bac 100644 --- a/src/option.c +++ b/src/option.c @@ -7187,7 +7187,7 @@ option_set_callback_func(char_u *optval UNUSED, callback_T *optcb UNUSED) return OK; } - if (*optval == '{' + if (*optval == '{' || (in_vim9script() && *optval == '(') || (STRNCMP(optval, "function(", 9) == 0) || (STRNCMP(optval, "funcref(", 8) == 0)) // Lambda expression or a funcref |