diff 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
line wrap: on
line diff
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -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;