Mercurial > vim
diff src/proto/userfunc.pro @ 30122:458162398682 v9.0.0397
patch 9.0.0397: :defer not tested with exceptions and ":qa!"
Commit: https://github.com/vim/vim/commit/58779858fb5a82a3233af5d4237a3cece88c10d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 6 18:31:14 2022 +0100
patch 9.0.0397: :defer not tested with exceptions and ":qa!"
Problem: :defer not tested with exceptions and ":qa!".
Solution: Test :defer works when exceptions are thrown and when ":qa!" is
used. Invoke the deferred calls on exit.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 06 Sep 2022 19:45:04 +0200 |
parents | a542dfb1c1a2 |
children | 3b42bdfff7cb |
line wrap: on
line diff
--- a/src/proto/userfunc.pro +++ b/src/proto/userfunc.pro @@ -59,7 +59,7 @@ void func_ref(char_u *name); void func_ptr_ref(ufunc_T *fp); void ex_return(exarg_T *eap); int add_defer(char_u *name, int argcount_arg, typval_T *argvars); -void handle_defer(void); +void invoke_all_defer(void); void ex_call(exarg_T *eap); int do_return(exarg_T *eap, int reanimate, int is_cmd, void *rettv); void discard_pending_return(void *rettv);