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:
committed by
Bram Moolenaar
parent
01a4dcbcee
commit
7645da568c
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user