Mercurial > vim
diff src/proto/userfunc.pro @ 30140:3b42bdfff7cb v9.0.0406
patch 9.0.0406: deferred functions not invoked when partial func exits
Commit: https://github.com/vim/vim/commit/9667b2c888351b04751bdb43cba0d4ffc8c13ab1
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 7 17:28:09 2022 +0100
patch 9.0.0406: deferred functions not invoked when partial func exits
Problem: Deferred functions not invoked when partial func exits.
Solution: Create a funccall_T when calling a :def function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Sep 2022 18:30:03 +0200 |
parents | 458162398682 |
children | 0fe61fa4e5d1 |
line wrap: on
line diff
--- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -21,6 +21,8 @@ int funcdepth_increment(void); void funcdepth_decrement(void); int funcdepth_get(void); void funcdepth_restore(int depth); +funccall_T *create_funccal(ufunc_T *fp, typval_T *rettv); +void remove_funccal(void); int check_user_func_argcount(ufunc_T *fp, int argcount); int call_user_func_check(ufunc_T *fp, int argcount, typval_T *argvars, typval_T *rettv, funcexe_T *funcexe, dict_T *selfdict); void save_funccal(funccal_entry_T *entry);