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
@@ -115,7 +115,7 @@ static callback_T tfu_cb; // 'tagfunc' callback function
|
||||
* a function (string), or function(<name>) or funcref(<name>) or a lambda.
|
||||
*/
|
||||
int
|
||||
set_tagfunc_option()
|
||||
set_tagfunc_option(void)
|
||||
{
|
||||
#ifdef FEAT_EVAL
|
||||
free_callback(&tfu_cb);
|
||||
@@ -148,7 +148,7 @@ free_tagfunc_option(void)
|
||||
* callback for 'buf'.
|
||||
*/
|
||||
void
|
||||
buf_set_tfu_callback(buf_T *buf UNUSED)
|
||||
set_buflocal_tfu_callback(buf_T *buf UNUSED)
|
||||
{
|
||||
#ifdef FEAT_EVAL
|
||||
free_callback(&buf->b_tfu_cb);
|
||||
|
Reference in New Issue
Block a user