diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-01-27 14:03:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-27 14:03:44 +0800 |
commit | 7367838359bfb5fadf72ea2aeea2f84efb34590e (patch) | |
tree | 939ddefa6264d32906949343f25862b6d504a2e6 /src/nvim/api/private/helpers.c | |
parent | 38bb0e1da868fd7593387319376d0e167616638b (diff) | |
download | rneovim-7367838359bfb5fadf72ea2aeea2f84efb34590e.tar.gz rneovim-7367838359bfb5fadf72ea2aeea2f84efb34590e.tar.bz2 rneovim-7367838359bfb5fadf72ea2aeea2f84efb34590e.zip |
fix(api): limit depth of nvim_cmd (#27225)
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r-- | src/nvim/api/private/helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c index 8f30ac7c8f..9ce1786fa0 100644 --- a/src/nvim/api/private/helpers.c +++ b/src/nvim/api/private/helpers.c @@ -151,7 +151,7 @@ bool try_end(Error *err) if (should_free) { xfree(msg); } - } else if (did_throw) { + } else if (did_throw || need_rethrow) { if (*current_exception->throw_name != NUL) { if (current_exception->throw_lnum != 0) { api_set_error(err, kErrorTypeException, "%s, line %" PRIdLINENR ": %s", |