mirror of
https://github.com/neovim/neovim.git
synced 2025-09-08 20:38:18 +00:00
api: make try_end clean-up after an exception properly. Fixes #10809
Otherwise `force_abort` will cause an emsg() higher on the stack to be converted to an exception, even though it is outside any try/catch.
This commit is contained in:
@@ -125,6 +125,7 @@ bool try_end(Error *err)
|
||||
|
||||
// Set by emsg(), affects aborting(). See also enter_cleanup().
|
||||
did_emsg = false;
|
||||
force_abort = false;
|
||||
|
||||
if (got_int) {
|
||||
if (current_exception) {
|
||||
|
Reference in New Issue
Block a user