1
0
forked from aniani/vim

patch 8.2.3735: cannot use a lambda for 'imactivatefunc'

Problem:    Cannot use a lambda for 'imactivatefunc'.
Solution:   Add lambda support for 'imactivatefunc' and 'imstatusfunc'.
            (Yegappan Lakshmanan, closes #9275)
This commit is contained in:
Yegappan Lakshmanan
2021-12-04 14:02:30 +00:00
committed by Bram Moolenaar
parent 01a4dcbcee
commit 7645da568c
8 changed files with 215 additions and 16 deletions

View File

@@ -2330,6 +2330,23 @@ ambw_end:
}
#endif
#if defined(FEAT_EVAL) && \
(defined(FEAT_XIM) || defined(IME_WITHOUT_XIM) || defined(VIMDLL))
// 'imactivatefunc'
else if (gvarp == &p_imaf)
{
if (set_imactivatefunc_option() == FAIL)
errmsg = e_invarg;
}
// 'imstatusfunc'
else if (gvarp == &p_imsf)
{
if (set_imstatusfunc_option() == FAIL)
errmsg = e_invarg;
}
#endif
// 'operatorfunc'
else if (varp == &p_opfunc)
{