diff options
author | Jake Kerr <kodafox@gmail.com> | 2015-02-12 20:04:09 +0900 |
---|---|---|
committer | Jake Kerr <kodafox@gmail.com> | 2015-02-12 20:06:54 +0900 |
commit | 9330579dcfaf948b2fa3dbff2836b37acb4c666e (patch) | |
tree | e1e34b0db343a3a7846b9d25a215bb6663a59ad2 /src | |
parent | f1f1f711c78e408b39fd35bdb97cb17cd3994111 (diff) | |
download | rneovim-9330579dcfaf948b2fa3dbff2836b37acb4c666e.tar.gz rneovim-9330579dcfaf948b2fa3dbff2836b37acb4c666e.tar.bz2 rneovim-9330579dcfaf948b2fa3dbff2836b37acb4c666e.zip |
Discard exceptions once they are converted to API errors
Fixes: #1976
Diffstat (limited to 'src')
-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 750b151d10..8083b819d8 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -65,6 +65,7 @@ bool try_end(Error *err) } } else if (did_throw) { api_set_error(err, Exception, "%s", current_exception->value); + discard_current_exception(); } return err->set; |