Mercurial > vim
diff src/option.c @ 26362:dbe615b75f15 v8.2.3712
patch 8.2.3712: cannot use Vim9 lambda for 'tagfunc'
Commit: https://github.com/vim/vim/commit/05e59e3a9ffddbf93c7af02cd2ba1d0f822d4625
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Wed Dec 1 10:30:07 2021 +0000
patch 8.2.3712: cannot use Vim9 lambda for 'tagfunc'
Problem: Cannot use Vim9 lambda for 'tagfunc'.
Solution: Make it work, add more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/9250)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 01 Dec 2021 11:45:02 +0100 |
parents | a2e6da79274d |
children | 8aba638e91eb |
line wrap: on
line diff
--- a/src/option.c +++ b/src/option.c @@ -7187,7 +7187,7 @@ option_set_callback_func(char_u *optval return OK; } - if (*optval == '{' + if (*optval == '{' || (in_vim9script() && *optval == '(') || (STRNCMP(optval, "function(", 9) == 0) || (STRNCMP(optval, "funcref(", 8) == 0)) // Lambda expression or a funcref