From eeece9e4885df6190d2615b199efa2b1d22c4bdb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 20 Nov 2020 19:26:48 +0100 Subject: 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 #7336) --- src/globals.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/globals.h') 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 -- cgit v1.2.3