mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-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.
58779858fb
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include "nvim/eval.h"
|
||||
#include "nvim/eval/typval.h"
|
||||
#include "nvim/eval/typval_defs.h"
|
||||
#include "nvim/eval/userfunc.h"
|
||||
#include "nvim/event/multiqueue.h"
|
||||
#include "nvim/event/stream.h"
|
||||
#include "nvim/ex_cmds.h"
|
||||
@@ -693,6 +694,9 @@ void getout(int exitval)
|
||||
// Position the cursor on the last screen line, below all the text
|
||||
ui_cursor_goto(Rows - 1, 0);
|
||||
|
||||
// Invoked all deferred functions in the function stack.
|
||||
invoke_all_defer();
|
||||
|
||||
// Optionally print hashtable efficiency.
|
||||
hash_debug_results();
|
||||
|
||||
|
Reference in New Issue
Block a user