diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-02 21:59:58 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-02 23:01:16 +0200 |
commit | 7e07efaff429d8d8634fd059c6295c7ff0b56c6c (patch) | |
tree | 2501f2d659090d263701753d05c51b24f525dc94 /src/nvim/api/private/helpers.c | |
parent | 099445cc07b0154edc6ecd562a28e86c87c0096b (diff) | |
download | rneovim-7e07efaff429d8d8634fd059c6295c7ff0b56c6c.tar.gz rneovim-7e07efaff429d8d8634fd059c6295c7ff0b56c6c.tar.bz2 rneovim-7e07efaff429d8d8634fd059c6295c7ff0b56c6c.zip |
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.
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { |