forked from aniani/vim
patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'
Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'. Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257)
This commit is contained in:
committed by
Bram Moolenaar
parent
021ef351c2
commit
8658c759f0
@@ -2307,6 +2307,29 @@ ambw_end:
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifdef FEAT_COMPL_FUNC
|
||||
// 'completefunc'
|
||||
else if (gvarp == &p_cfu)
|
||||
{
|
||||
if (set_completefunc_option() == FAIL)
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
|
||||
// 'omnifunc'
|
||||
else if (gvarp == &p_ofu)
|
||||
{
|
||||
if (set_omnifunc_option() == FAIL)
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
|
||||
// 'thesaurusfunc'
|
||||
else if (gvarp == &p_tsrfu)
|
||||
{
|
||||
if (set_thesaurusfunc_option() == FAIL)
|
||||
errmsg = e_invarg;
|
||||
}
|
||||
#endif
|
||||
|
||||
// 'operatorfunc'
|
||||
else if (varp == &p_opfunc)
|
||||
{
|
||||
|
Reference in New Issue
Block a user