diff options
author | ZyX <kp-pav@yandex.ru> | 2017-07-18 00:08:57 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2017-07-18 00:08:57 +0300 |
commit | cfb1d937a64fcec836fdf26d6ea67024aeafabeb (patch) | |
tree | fb2959cef61224433c5ad2204f23e818b336ccd4 /src/nvim/api/private/helpers.h | |
parent | 3a923ad2db87b2bece89616b28a14ab9826d569a (diff) | |
download | rneovim-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.h | 7 |
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 |