aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.h
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-07-18 00:08:57 +0300
committerZyX <kp-pav@yandex.ru>2017-07-18 00:08:57 +0300
commitcfb1d937a64fcec836fdf26d6ea67024aeafabeb (patch)
treefb2959cef61224433c5ad2204f23e818b336ccd4 /src/nvim/api/private/helpers.h
parent3a923ad2db87b2bece89616b28a14ab9826d569a (diff)
downloadrneovim-cfb1d937a64fcec836fdf26d6ea67024aeafabeb.tar.gz
rneovim-cfb1d937a64fcec836fdf26d6ea67024aeafabeb.tar.bz2
rneovim-cfb1d937a64fcec836fdf26d6ea67024aeafabeb.zip
api helpers: Also save and restore did_emsg
Diffstat (limited to 'src/nvim/api/private/helpers.h')
-rw-r--r--src/nvim/api/private/helpers.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/api/private/helpers.h b/src/nvim/api/private/helpers.h
index 0b2cf883a6..87f334ac30 100644
--- a/src/nvim/api/private/helpers.h
+++ b/src/nvim/api/private/helpers.h
@@ -88,13 +88,14 @@
/// Used when caller is supposed to be operating when other VimL code is being
/// processed and that “other VimL code” must not be affected.
typedef struct {
+ except_T *current_exception;
+ struct msglist *private_msg_list;
+ const struct msglist *const *msg_list;
int trylevel;
int got_int;
int did_throw;
int need_rethrow;
- except_T *current_exception;
- struct msglist *private_msg_list;
- const struct msglist *const *msg_list;
+ int did_emsg;
} TryState;
#ifdef INCLUDE_GENERATED_DECLARATIONS