Add support for the pum_getpos() API (#11562)

Add support for the pum_getpos() API
This commit is contained in:
Seth Fowler
2019-12-16 14:08:55 -05:00
committed by Björn Linse
parent 473aea92cb
commit 251b20e533
5 changed files with 70 additions and 0 deletions

View File

@@ -13972,6 +13972,13 @@ static void f_printf(typval_T *argvars, typval_T *rettv, FunPtr fptr)
}
}
// "pum_getpos()" function
static void f_pum_getpos(typval_T *argvars, typval_T *rettv, FunPtr fptr)
{
tv_dict_alloc_ret(rettv);
pum_set_event_info(rettv->vval.v_dict);
}
/*
* "pumvisible()" function
*/