diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-20 19:26:48 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-20 19:26:48 +0100 |
commit | eeece9e4885df6190d2615b199efa2b1d22c4bdb (patch) | |
tree | 20e918f60683f8e6ce9d8df715df4d3d28c921b9 /src/globals.h | |
parent | bebaa0d5c034eb2c4c4dcac86ae6a859b24d2693 (diff) |
patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsgv8.2.2021
Problem: Vim9: get E1099 when autocommand resets did_emsg.
Solution: Add did_emsg_cumul. (closes #7336)
Diffstat (limited to 'src/globals.h')
-rw-r--r-- | src/globals.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/globals.h b/src/globals.h index dd7fa4a531..af1a85c82a 100644 --- a/src/globals.h +++ b/src/globals.h @@ -230,6 +230,8 @@ EXTERN int did_endif INIT(= FALSE); // just had ":endif" EXTERN int did_emsg; // set by emsg() when the message // is displayed or thrown #ifdef FEAT_EVAL +EXTERN int did_emsg_cumul; // cumulative did_emsg, increased + // when did_emsg is reset. EXTERN int called_vim_beep; // set if vim_beep() is called EXTERN int did_uncaught_emsg; // emsg() was called and did not // cause an exception |