From 7e07efaff429d8d8634fd059c6295c7ff0b56c6c Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Mon, 2 Sep 2019 21:59:58 +0200 Subject: 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. --- src/nvim/api/private/helpers.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/nvim/api/private/helpers.c') diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 26f388ae7e..fb3a73ad4a 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -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) { -- cgit