Mercurial > vim
comparison src/globals.h @ 22948:707b90980de5 v8.2.2021
patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsg
Commit: https://github.com/vim/vim/commit/eeece9e4885df6190d2615b199efa2b1d22c4bdb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Nov 20 19:26:48 2020 +0100
patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsg
Problem: Vim9: get E1099 when autocommand resets did_emsg.
Solution: Add did_emsg_cumul. (closes https://github.com/vim/vim/issues/7336)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 Nov 2020 19:30:03 +0100 |
parents | 8e7cbf73c3a0 |
children | 3239b0f3c592 |
comparison
equal
deleted
inserted
replaced
22947:8625a16d18dc | 22948:707b90980de5 |
---|---|
228 EXTERN int did_endif INIT(= FALSE); // just had ":endif" | 228 EXTERN int did_endif INIT(= FALSE); // just had ":endif" |
229 #endif | 229 #endif |
230 EXTERN int did_emsg; // set by emsg() when the message | 230 EXTERN int did_emsg; // set by emsg() when the message |
231 // is displayed or thrown | 231 // is displayed or thrown |
232 #ifdef FEAT_EVAL | 232 #ifdef FEAT_EVAL |
233 EXTERN int did_emsg_cumul; // cumulative did_emsg, increased | |
234 // when did_emsg is reset. | |
233 EXTERN int called_vim_beep; // set if vim_beep() is called | 235 EXTERN int called_vim_beep; // set if vim_beep() is called |
234 EXTERN int did_uncaught_emsg; // emsg() was called and did not | 236 EXTERN int did_uncaught_emsg; // emsg() was called and did not |
235 // cause an exception | 237 // cause an exception |
236 #endif | 238 #endif |
237 EXTERN int did_emsg_syntax; // did_emsg set because of a | 239 EXTERN int did_emsg_syntax; // did_emsg set because of a |