1
0
forked from aniani/vim

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 #9250)
This commit is contained in:
Yegappan Lakshmanan
2021-12-01 10:30:07 +00:00
committed by Bram Moolenaar
parent 56a8ffdb6e
commit 05e59e3a9f
5 changed files with 114 additions and 18 deletions

View File

@@ -2257,13 +2257,12 @@ get_complete_funcname(int type)
}
/*
* Execute user defined complete function 'completefunc' or 'omnifunc', and
* get matches in "matches".
* Execute user defined complete function 'completefunc', 'omnifunc' or
* 'thesaurusfunc', and get matches in "matches".
* "type" is either CTRL_X_OMNI or CTRL_X_FUNCTION or CTRL_X_THESAURUS.
*/
static void
expand_by_function(
int type, // CTRL_X_OMNI or CTRL_X_FUNCTION
char_u *base)
expand_by_function(int type, char_u *base)
{
list_T *matchlist = NULL;
dict_T *matchdict = NULL;