comparison src/insexpand.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 f2392648af3e
children 8aba638e91eb
comparison
equal deleted inserted replaced
26361:51dc5e9bbfb0 26362:dbe615b75f15
2255 return (char_u *)""; 2255 return (char_u *)"";
2256 } 2256 }
2257 } 2257 }
2258 2258
2259 /* 2259 /*
2260 * Execute user defined complete function 'completefunc' or 'omnifunc', and 2260 * Execute user defined complete function 'completefunc', 'omnifunc' or
2261 * get matches in "matches". 2261 * 'thesaurusfunc', and get matches in "matches".
2262 * "type" is either CTRL_X_OMNI or CTRL_X_FUNCTION or CTRL_X_THESAURUS.
2262 */ 2263 */
2263 static void 2264 static void
2264 expand_by_function( 2265 expand_by_function(int type, char_u *base)
2265 int type, // CTRL_X_OMNI or CTRL_X_FUNCTION
2266 char_u *base)
2267 { 2266 {
2268 list_T *matchlist = NULL; 2267 list_T *matchlist = NULL;
2269 dict_T *matchdict = NULL; 2268 dict_T *matchdict = NULL;
2270 typval_T args[3]; 2269 typval_T args[3];
2271 char_u *funcname; 2270 char_u *funcname;